Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/environment-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ source ofrak-venv/bin/activate
java \
libmagic \
lzop \
pigz \
p7zip \
qemu \
squashfs \
Expand Down
2 changes: 1 addition & 1 deletion ofrak_components/Dockerstub
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ RUN apt-get -y update && \
build-essential \
cpio \
git \
gzip \
liblz4-dev \
liblzo2-dev \
libzstd-dev \
lzop \
pigz \
p7zip-full \
zip \
qemu \
Expand Down
2 changes: 1 addition & 1 deletion ofrak_components/ofrak_components/gzip.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ async def unpack(self, resource: Resource, config=None):
with tempfile.NamedTemporaryFile(suffix=".gz") as temp_file:
temp_file.write(await resource.get_data())
temp_file.flush()
command = ["gzip", "-d", "-c", temp_file.name] # Decompress to stdout
command = ["pigz", "-d", "-c", temp_file.name] # Decompress to stdout
try:
run_result = subprocess.run(command, check=True, capture_output=True)
data = run_result.stdout
Expand Down
4 changes: 2 additions & 2 deletions ofrak_components/ofrak_components_test/test_gzip_component.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async def create_root_resource(self, ofrak_context: OFRAKContext) -> Resource:
f.write(self.INITIAL_DATA)

gzip_path = os.path.join(d, self.GZIP_FILENAME)
gzip_command = ["gzip", file_path]
gzip_command = ["pigz", file_path]
try:
subprocess.run(gzip_command, check=True, capture_output=True)
except subprocess.CalledProcessError as e:
Expand Down Expand Up @@ -78,7 +78,7 @@ async def verify(self, root_resource: Resource) -> None:
with open(gzip_path, "wb") as f:
f.write(gzip_data)

gunzip_command = ["gzip", "-d", "-c", gzip_path]
gunzip_command = ["pigz", "-d", "-c", gzip_path]
try:
result = subprocess.run(gunzip_command, check=True, capture_output=True)
data = result.stdout
Expand Down