mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-21 23:33:07 +00:00
Prevent CLI argument issues
This commit is contained in:
parent
8fc0944950
commit
7afa8d4626
1 changed files with 1 additions and 2 deletions
|
@ -12,7 +12,6 @@
|
|||
import sys
|
||||
|
||||
verbose = True
|
||||
objdump = "objdump -T %s"
|
||||
glibc_re = re.compile(r"GLIBC_([0-9]\.[0-9]+)")
|
||||
|
||||
|
||||
|
@ -32,7 +31,7 @@ def main():
|
|||
overall_versions = set()
|
||||
for filename in filenames:
|
||||
try:
|
||||
output = subprocess.check_output(objdump % filename, shell=True, stderr=subprocess.STDOUT)
|
||||
output = subprocess.check_output(["objdump", "-T", filename], stderr=subprocess.STDOUT)
|
||||
output = output.decode()
|
||||
versions = {parse_version(match.group(1)) for match in glibc_re.finditer(output)}
|
||||
requires_glibc = max(versions)
|
||||
|
|
Loading…
Reference in a new issue