summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-07-31 15:57:04 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-07-31 15:57:04 +0000
commit0adc9ee1289b5437b6386a44060117a8a5207f01 (patch)
tree7ba68f2f9e90b93afcb5635272eb1c8fbf7ffaf0
parent6bd781d384bb0741999927087ece0c58b85b57fc (diff)
base.bbclass: Remove warnings for older bitbake users
-rw-r--r--classes/base.bbclass7
-rw-r--r--conf/bitbake.conf2
2 files changed, 8 insertions, 1 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index fec7622f18..5381d43e7b 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -892,6 +892,13 @@ python () {
base_after_parse(d)
}
+# Remove me when we switch to bitbake 1.8.8
+def base_get_srcrev(d):
+ import bb
+
+ if bb.fetch.get_srcrev:
+ return bb.fetch.get_srcrev(d)
+ return "NOT IMPLEMENTED"
# Patch handling
inherit patch
diff --git a/conf/bitbake.conf b/conf/bitbake.conf
index 38a716af00..19910d32e7 100644
--- a/conf/bitbake.conf
+++ b/conf/bitbake.conf
@@ -365,7 +365,7 @@ UPDATECOMMAND = "ERROR, this must be a BitBake bug"
UPDATECOMMAND_cvs = "/usr/bin/env cvs -d${CVSROOT} update -d -P ${CVSCOOPTS}"
UPDATECOMMAND_svn = "/usr/bin/env svn update ${SVNCOOPTS}"
SRCDATE = "${DATE}"
-SRCREV = "${@bb.fetch.get_srcrev(d)}"
+SRCREV = "${@base_get_srcrev(d)}"
SRC_URI = "file://${FILE}"