File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -4430,9 +4430,10 @@ class Meta:
44304430 pass
44314431
44324432 def __str__ (self ):
4433- return f"Archive { self .checksum_sha256 [:8 ]} at {
4434- self .storage_path or self .package_file .name
4435- } "
4433+ return (
4434+ f"Archive { self .checksum_sha256 [:8 ]} at "
4435+ f" { self .storage_path or self .package_file .name } "
4436+ )
44364437
44374438
44384439class DownloadedPackage (UUIDPKModel ):
Original file line number Diff line number Diff line change @@ -146,7 +146,7 @@ def store_package_archives(self):
146146 dest_path .parent .mkdir (exist_ok = True )
147147 with open (dest_path , "wb" ) as f :
148148 for chunk in response .iter_content (1024 ):
149- f .write (chunk )
149+ f .writelines (chunk )
150150 result = store_package_archive (
151151 self .project , url = apk_url , file_path = str (dest_path )
152152 )
You can’t perform that action at this time.
0 commit comments