From 62aa68142d80fc4bfd07acce51b50969b19bb80a Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Fri, 12 Apr 2024 13:48:34 -0700 Subject: [PATCH] fix syntax error --- britney2/policies/autopkgtest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/britney2/policies/autopkgtest.py b/britney2/policies/autopkgtest.py index 3659c43..de7af7b 100644 --- a/britney2/policies/autopkgtest.py +++ b/britney2/policies/autopkgtest.py @@ -182,7 +182,7 @@ class AutopkgtestPolicy(BasePolicy): break f_out.write(data) content_length = f.getheader('content-length') - if http_code and content_length and os.path.getsize(new_file) != content_length): + if http_code and content_length and os.path.getsize(new_file) != content_length: self.logger.info('Short read downloading autopkgtest results') os.unlink(new_file) else: