mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-05-19 06:21:31 +00:00
autopkgtest.py Download the checksum first since it is smaller.
This commit is contained in:
parent
9398f75d21
commit
f7eb93beb2
@ -172,8 +172,8 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
f = None
|
f = None
|
||||||
local_db_sha = hashlib.sha256()
|
local_db_sha = hashlib.sha256()
|
||||||
try:
|
try:
|
||||||
f = self.download_retry(self.options.adt_db_url)
|
|
||||||
chksum = self.download_retry(self.options.adt_db_url + ".sha256").read().rstrip()
|
chksum = self.download_retry(self.options.adt_db_url + ".sha256").read().rstrip()
|
||||||
|
f = self.download_retry(self.options.adt_db_url)
|
||||||
http_code = f.getcode()
|
http_code = f.getcode()
|
||||||
# file:/// urls don't have the http niceties
|
# file:/// urls don't have the http niceties
|
||||||
if not http_code or http_code == 200:
|
if not http_code or http_code == 200:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user