bitbake/fetch2: Ensure SRCREV_pn-PN is checked for a revision when the SRC_URI is unnamed

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie 2011-02-23 11:47:50 +00:00
parent 56a92105fe
commit 707132c60a
1 changed files with 3 additions and 1 deletions

View File

@ -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":