diff options
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index 5df642e373..e8cea7feb4 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -915,6 +915,10 @@ def rename_bad_checksum(ud, suffix): | |||
915 | def try_mirror_url(fetch, origud, ud, ld, check = False): | 915 | def try_mirror_url(fetch, origud, ud, ld, check = False): |
916 | # Return of None or a value means we're finished | 916 | # Return of None or a value means we're finished |
917 | # False means try another url | 917 | # False means try another url |
918 | |||
919 | if ud.lockfile and ud.lockfile != origud.lockfile: | ||
920 | lf = bb.utils.lockfile(ud.lockfile) | ||
921 | |||
918 | try: | 922 | try: |
919 | if check: | 923 | if check: |
920 | found = ud.method.checkstatus(fetch, ud, ld) | 924 | found = ud.method.checkstatus(fetch, ud, ld) |
@@ -980,6 +984,10 @@ def try_mirror_url(fetch, origud, ud, ld, check = False): | |||
980 | except UnboundLocalError: | 984 | except UnboundLocalError: |
981 | pass | 985 | pass |
982 | return False | 986 | return False |
987 | finally: | ||
988 | if ud.lockfile and ud.lockfile != origud.lockfile: | ||
989 | bb.utils.unlockfile(lf) | ||
990 | |||
983 | 991 | ||
984 | def try_mirrors(fetch, d, origud, mirrors, check = False): | 992 | def try_mirrors(fetch, d, origud, mirrors, check = False): |
985 | """ | 993 | """ |