diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 47463561e3..cba45d0a4e 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -650,11 +650,14 @@ def srcrev_internal_helper(ud, d, name): | |||
650 | if not rev: | 650 | if not rev: |
651 | rev = d.getVar("SRCREV_%s" % name, True) | 651 | rev = d.getVar("SRCREV_%s" % name, True) |
652 | if not rev: | 652 | if not rev: |
653 | rev = d.getVar("SRCREV_pn-%s" % pn, True) | 653 | rev = d.getVar("SRCREV_pn-%s" % pn, True) |
654 | if not rev: | 654 | if not rev: |
655 | rev = d.getVar("SRCREV", True) | 655 | rev = d.getVar("SRCREV", True) |
656 | if rev == "INVALID": | 656 | if rev == "INVALID": |
657 | raise FetchError("Please set SRCREV to a valid value", ud.url) | 657 | var = "SRCREV_pn-%s" % pn |
658 | if name != '': | ||
659 | var = "SRCREV_%s_pn-%s" % (name, pn) | ||
660 | raise FetchError("Please set %s to a valid value" % var, ud.url) | ||
658 | if rev == "AUTOINC": | 661 | if rev == "AUTOINC": |
659 | rev = ud.method.latest_revision(ud.url, ud, d, name) | 662 | rev = ud.method.latest_revision(ud.url, ud, d, name) |
660 | 663 | ||