diff options
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 8b6c3eed6c..de95074c40 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -897,17 +897,12 @@ def srcrev_internal_helper(ud, d, name): | |||
897 | raise FetchError("Conflicting revisions (%s from SRCREV and %s from the url) found, please spcify one valid value" % (srcrev, parmrev)) | 897 | raise FetchError("Conflicting revisions (%s from SRCREV and %s from the url) found, please spcify one valid value" % (srcrev, parmrev)) |
898 | return parmrev | 898 | return parmrev |
899 | 899 | ||
900 | rev = srcrev | 900 | if srcrev == "INVALID" or not srcrev: |
901 | if rev == "INVALID" or not rev: | 901 | raise FetchError("Please set a valid SRCREV for url %s (possible key names are %s, or use a ;rev=X URL parameter)" % (str(attempts), ud.url), ud.url) |
902 | var = "SRCREV_pn-%s" % pn | 902 | if srcrev == "AUTOINC": |
903 | if name != '': | 903 | srcrev = ud.method.latest_revision(ud, d, name) |
904 | var = "SRCREV_%s_pn-%s" % (name, pn) | ||
905 | raise FetchError("Please set %s to a valid value" % var, ud.url) | ||
906 | if rev == "AUTOINC": | ||
907 | rev = ud.method.latest_revision(ud, d, name) | ||
908 | |||
909 | return rev | ||
910 | 904 | ||
905 | return srcrev | ||
911 | 906 | ||
912 | def get_checksum_file_list(d): | 907 | def get_checksum_file_list(d): |
913 | """ Get a list of files checksum in SRC_URI | 908 | """ Get a list of files checksum in SRC_URI |