]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
fetch: Ensure SRCREV is still set correctly if the pn-X override has been expanded
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 9 Oct 2010 16:24:16 +0000 (17:24 +0100)
committerChris Larson <chris_larson@mentor.com>
Wed, 29 Dec 2010 23:28:19 +0000 (16:28 -0700)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
lib/bb/fetch/__init__.py

index e5191fa86491c5bdf87655cb66a2f675685f3095..aa16fb9278fad52eaf886d955376fe54074100ee 100644 (file)
@@ -647,6 +647,8 @@ class Fetch(object):
             rev = data.getVar("SRCREV_%s_pn-%s" % (ud.parm['name'], pn), d, 1)
             if not rev:
                 rev = data.getVar("SRCREV_pn-%s_%s" % (pn, ud.parm['name']), d, 1)
+            if not rev:
+                rev = data.getVar("SRCREV_%s" % (ud.parm['name']), d, 1)
         if not rev:
             rev = data.getVar("SRCREV", d, 1)
         if rev == "INVALID":