Rimozione errori linter e append mode corretto.
This commit is contained in:
parent
14ac61fc92
commit
1c38d688d5
|
@ -470,7 +470,7 @@ class Build():
|
|||
|
||||
# On the contrary, we will dump a logfile, remove the download and
|
||||
# redo the download.
|
||||
with open(os.path.join(self.download_path, 'downloadfailure.log'), 'wa') as logfile:
|
||||
with open(os.path.join(self.download_path, 'downloadfailure.log'), 'a') as logfile:
|
||||
logfile.write(f"{timenow.isoformat()};{resource.url};{mimetype}")
|
||||
|
||||
os.unlink(testedfilename)
|
||||
|
@ -647,7 +647,8 @@ class Build():
|
|||
|
||||
# If all works as expected, we obtain a tuple of:
|
||||
# (debian_packages, all_libraries, files_not_found)
|
||||
(debian_packages, all_libraries, not_found) = raw
|
||||
debian_packages = raw[0]
|
||||
not_found = raw[2]
|
||||
|
||||
if len(debian_packages) != 0:
|
||||
# Creating temporary folders
|
||||
|
@ -773,7 +774,7 @@ class Helpers:
|
|||
pass2 = subprocess.Popen(shlex.split(
|
||||
r"grep '^\w'"
|
||||
), stdin=pass1.stdout, stdout=subprocess.PIPE, encoding='utf-8')
|
||||
stdout, stderr = pass2.communicate()
|
||||
stdout = pass2.communicate()[0]
|
||||
|
||||
return stdout.strip().split("\n")
|
||||
|
||||
|
|
Loading…
Reference in New Issue