mirror of
https://git.launchpad.net/~ubuntu-release/britney/+git/britney2-ubuntu
synced 2025-06-11 01:31:30 +00:00
Fix: autopkgtest now returns content-length header again
reverts commit 25eb52aa3386ecbccd2d9c8dafd22498d40e2002 This must be reverted so that britney is aware of short reads of the db.
This commit is contained in:
parent
62aa68142d
commit
b780710623
@ -181,8 +181,7 @@ class AutopkgtestPolicy(BasePolicy):
|
|||||||
if not data:
|
if not data:
|
||||||
break
|
break
|
||||||
f_out.write(data)
|
f_out.write(data)
|
||||||
content_length = f.getheader('content-length')
|
if http_code and os.path.getsize(new_file) != int(f.getheader('content-length')):
|
||||||
if http_code and content_length and os.path.getsize(new_file) != content_length:
|
|
||||||
self.logger.info('Short read downloading autopkgtest results')
|
self.logger.info('Short read downloading autopkgtest results')
|
||||||
os.unlink(new_file)
|
os.unlink(new_file)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user