Skip to content

Commit 9dd1621

Browse files
Matthijsytwiggler
authored andcommitted
Ensure --compress is set when specifying --compress-method
1 parent 9a1e62f commit 9dd1621

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

acquire/utils.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,9 @@ def check_and_set_acquire_args(
371371
raise ValueError(
372372
f"Invalid compression method for tar, allowed are: {', '.join(TAR_COMPRESSION_METHODS.keys())}"
373373
)
374+
else:
375+
if args.compress_method:
376+
raise ValueError("--compress-method can only be used when --compress is set")
374377

375378
if args.keychain_file:
376379
keychain.register_keychain_file(args.keychain_file)

0 commit comments

Comments
 (0)