diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/wget.py | 2 | ||||
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/fetch2/wget.py b/bitbake/lib/bb/fetch2/wget.py index e6d9f528d0..83acd85bae 100644 --- a/bitbake/lib/bb/fetch2/wget.py +++ b/bitbake/lib/bb/fetch2/wget.py | |||
@@ -316,7 +316,7 @@ class Wget(FetchMethod): | |||
316 | except (TypeError, ImportError, IOError, netrc.NetrcParseError): | 316 | except (TypeError, ImportError, IOError, netrc.NetrcParseError): |
317 | pass | 317 | pass |
318 | 318 | ||
319 | with opener.open(r) as response: | 319 | with opener.open(r, timeout=30) as response: |
320 | pass | 320 | pass |
321 | except urllib.error.URLError as e: | 321 | except urllib.error.URLError as e: |
322 | if try_again: | 322 | if try_again: |
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 8b92e4d7c1..4671532f2b 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -993,7 +993,7 @@ class FetcherNetworkTest(FetcherTest): | |||
993 | """ Prevent regression on deeply nested submodules not being checked out properly, even though they were fetched. """ | 993 | """ Prevent regression on deeply nested submodules not being checked out properly, even though they were fetched. """ |
994 | 994 | ||
995 | # This repository also has submodules where the module (name), path and url do not align | 995 | # This repository also has submodules where the module (name), path and url do not align |
996 | url = "gitsm://github.com/azure/iotedge.git;protocol=git;rev=d76e0316c6f324345d77c48a83ce836d09392699" | 996 | url = "gitsm://github.com/azure/iotedge.git;protocol=git;rev=d76e0316c6f324345d77c48a83ce836d09392699;branch=main" |
997 | fetcher = bb.fetch.Fetch([url], self.d) | 997 | fetcher = bb.fetch.Fetch([url], self.d) |
998 | fetcher.download() | 998 | fetcher.download() |
999 | # Previous cwd has been deleted | 999 | # Previous cwd has been deleted |