diff options
author | Ross Burton <ross.burton@intel.com> | 2016-01-20 13:10:25 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-01-26 22:34:45 +0000 |
commit | 9f22898e0f9155a75c6b6f44869b129e505910e8 (patch) | |
tree | e118952bf5154c8dafcabe885ae9fa2bb2dfa922 /bitbake/lib/bb/cooker.py | |
parent | d11cc29758a07b65a773765208ab3b95dcbe4bf4 (diff) | |
download | poky-9f22898e0f9155a75c6b6f44869b129e505910e8.tar.gz |
bitbake: fetch2/wget: fallback to GET if HEAD is rejected in checkstatus()
The core change here is to fall back to GET requests if HEAD is rejected in the
checkstatus() method, as you can't do a HEAD on Amazon S3 (used by Github
archives). This meant removing the monkey patch that the default method was GET
and adding a fixed redirect handler that doesn't reset to GET.
Also, change the way the opener is constructed from an if/elif cluster to a
conditionally constructed list.
(Bitbake rev: 6ec70d5d2e330b41b932b0a655b838a5f37df01e)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
0 files changed, 0 insertions, 0 deletions