summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-10-09 17:24:16 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-10-09 17:24:16 +0100
commit115514b5eb6d02060a5b54192ca5f22ac434422e (patch)
tree0298893f35fa68fbf053cff7802091c0a3efca2b /bitbake
parenta743e823bcadefd21ef8e4127a26b42e9fb33fd3 (diff)
downloadpoky-115514b5eb6d02060a5b54192ca5f22ac434422e.tar.gz
bitbake/fetch: Ensure SRCREV is still set correctly if the pn-X override has been expanded
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index 156b815569..55ffdb84c9 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -648,6 +648,8 @@ class Fetch(object):
648 rev = data.getVar("SRCREV_%s_pn-%s" % (ud.parm['name'], pn), d, 1) 648 rev = data.getVar("SRCREV_%s_pn-%s" % (ud.parm['name'], pn), d, 1)
649 if not rev: 649 if not rev:
650 rev = data.getVar("SRCREV_pn-%s_%s" % (pn, ud.parm['name']), d, 1) 650 rev = data.getVar("SRCREV_pn-%s_%s" % (pn, ud.parm['name']), d, 1)
651 if not rev:
652 rev = data.getVar("SRCREV_%s" % (ud.parm['name']), d, 1)
651 if not rev: 653 if not rev:
652 rev = data.getVar("SRCREV", d, 1) 654 rev = data.getVar("SRCREV", d, 1)
653 if rev == "INVALID": 655 if rev == "INVALID":