diff options
-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": |