From: Richard Purdie Date: Wed, 23 Feb 2011 11:47:50 +0000 (+0000) Subject: bitbake/fetch2: Ensure SRCREV_pn-PN is checked for a revision when the SRC_URI is... X-Git-Tag: 2011-1~2272 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=707132c60a84cdcf50da056c68f2da7402d3b2e8;p=openembedded-core.git bitbake/fetch2: Ensure SRCREV_pn-PN is checked for a revision when the SRC_URI is unnamed Signed-off-by: Richard Purdie --- diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index fb8e9e4d0c..4e03fc9884 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py @@ -498,11 +498,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":