Skip to content

Commit 435b2d9

Browse files
committed
add support for functionc all
Signed-off-by: Varsha U N <[email protected]>
1 parent 33dfe79 commit 435b2d9

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

scanpipe/models.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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

44384439
class DownloadedPackage(UUIDPKModel):

scanpipe/pipelines/analyze_root_filesystem.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
)

0 commit comments

Comments
 (0)