summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-20 14:44:11 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-11-21 17:29:11 +0000
commit570cc145029fd9d5528aef5c27cb65164265c799 (patch)
treec4d6a40b44ae01bdf78cb13c306bfe39022a9807
parent20d2fad0d08eb337fdc80385bce32469a97e988a (diff)
downloadopenembedded-core-570cc145029fd9d5528aef5c27cb65164265c799.tar.gz
openembedded-core-570cc145029fd9d5528aef5c27cb65164265c799.tar.bz2
openembedded-core-570cc145029fd9d5528aef5c27cb65164265c799.zip
buildhistory/distrodata: Adapt to updated fetcher API
The buildhistory code has fallback paths for older bitbakes for now. The distrodata class is much less used and it can be assumed a recent bitbake is used in that case rather than adding fallback code. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/buildhistory.bbclass6
-rw-r--r--meta/classes/distrodata.bbclass2
2 files changed, 6 insertions, 2 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass
index 3da03c8485..ec3f0b173e 100644
--- a/meta/classes/buildhistory.bbclass
+++ b/meta/classes/buildhistory.bbclass
@@ -572,7 +572,11 @@ def _get_srcrev_values(d):
for scm in scms:
ud = urldata[scm]
for name in ud.names:
- rev = ud.method.sortable_revision(scm, ud, d, name)
+ try:
+ rev = ud.method.sortable_revision(ud, d, name)
+ except TypeError:
+ # support old bitbake versions
+ rev = ud.method.sortable_revision(scm, ud, d, name)
# Clean this up when we next bump bitbake version
if type(rev) != str:
autoinc, rev = rev
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass
index e4810273b2..2c365f968e 100644
--- a/meta/classes/distrodata.bbclass
+++ b/meta/classes/distrodata.bbclass
@@ -756,7 +756,7 @@ python do_checkpkg() {
svnFetcher = bb.fetch2.svn.Svn(d)
svnFetcher.urldata_init(ud, d)
try:
- pupver = svnFetcher.latest_revision(uri, ud, d, ud.names[0])
+ pupver = svnFetcher.latest_revision(ud, d, ud.names[0])
except bb.fetch2.FetchError:
pstatus = "ErrSvnAccess"