]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/fetch: Ensure SRCREV is still set correctly if the pn-X override has been...
authorRichard Purdie <rpurdie@linux.intel.com>
Sat, 9 Oct 2010 16:24:16 +0000 (17:24 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Sat, 9 Oct 2010 16:24:16 +0000 (17:24 +0100)
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/fetch/__init__.py

index 156b815569a5136f028ca26020489bf94d7e41f5..55ffdb84c9b43094fa25d92c1c0549e382a4358a 100644 (file)
@@ -648,6 +648,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":