diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-09 15:09:50 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-09-09 15:09:50 +0100 |
commit | f7b1c1056e6698bd092ac8ce526523bb3d06c39d (patch) | |
tree | 9a8262d37815d4b6628b7ba0c55fe443979616bf /bitbake | |
parent | 1e65495801ddda1f9db9158723ce8593349cd586 (diff) | |
download | poky-f7b1c1056e6698bd092ac8ce526523bb3d06c39d.tar.gz |
bitbake/__init__.py: Fix named SRCREVS variable name ordering with backwards compatibility
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py index a27b40f6ac..6ff7af32c5 100644 --- a/bitbake/lib/bb/fetch/__init__.py +++ b/bitbake/lib/bb/fetch/__init__.py | |||
@@ -631,7 +631,9 @@ class Fetch(object): | |||
631 | rev = None | 631 | rev = None |
632 | if 'name' in ud.parm: | 632 | if 'name' in ud.parm: |
633 | pn = data.getVar("PN", d, 1) | 633 | pn = data.getVar("PN", d, 1) |
634 | rev = data.getVar("SRCREV_pn-" + pn + "_" + ud.parm['name'], d, 1) | 634 | rev = data.getVar("SRCREV_%s_pn-%s" % (ud.parm['name'], pn), d, 1) |
635 | if not rev: | ||
636 | rev = data.getVar("SRCREV_pn-%s_%s" % (pn, ud.parm['name']), d, 1) | ||
635 | if not rev: | 637 | if not rev: |
636 | rev = data.getVar("SRCREV", d, 1) | 638 | rev = data.getVar("SRCREV", d, 1) |
637 | if rev == "INVALID": | 639 | if rev == "INVALID": |