]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
bitbake/fetch2: Ensure SRCREV_pn-PN is checked for a revision when the SRC_URI is...
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Feb 2011 11:47:50 +0000 (11:47 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Feb 2011 21:38:21 +0000 (21:38 +0000)
(From Poky rev: 707132c60a84cdcf50da056c68f2da7402d3b2e8)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/fetch2/__init__.py

index 9e09c53b72de15f714705a2b0925c76270b9c9a0..16c956059f8429ce86f647befef9b79f907ad27c 100644 (file)
@@ -497,11 +497,13 @@ def srcrev_internal_helper(ud, d, name):
         return ud.parm['tag']
 
     rev = None
+    pn = data.getVar("PN", d, True)
     if name != '':
-        pn = data.getVar("PN", d, True)
         rev = data.getVar("SRCREV_%s_pn-%s" % (name, pn), d, True)
         if not rev:
             rev = data.getVar("SRCREV_%s" % name, d, True)
+    if not rev:
+       rev = data.getVar("SRCREV_pn-%s" % pn, d, True)
     if not rev:
         rev = data.getVar("SRCREV", d, True)
     if rev == "INVALID":