Merge "zstd negative compression support" into main

This commit is contained in:
Daniel Zheng 2024-04-10 17:56:45 +00:00 committed by Gerrit Code Review
commit e836a3a2e4

View file

@ -1288,7 +1288,7 @@ def main(argv):
assert len(words) >= 1 and len(words) <= 2
OPTIONS.vabc_compression_param = a.lower()
if len(words) == 2:
if not words[1].isdigit():
if not words[1].lstrip("-").isdigit():
raise ValueError("Cannot parse value %r for option $COMPRESSION_LEVEL - only "
"integers are allowed." % words[1])
elif o == "--security_patch_level":