diff --git a/scripts/create-relocatable-package.py b/scripts/create-relocatable-package.py index 180141ad4d..cae88a7580 100755 --- a/scripts/create-relocatable-package.py +++ b/scripts/create-relocatable-package.py @@ -21,7 +21,12 @@ # along with Scylla. If not, see . # -import argparse, tarfile, os, os.path, subprocess, shutil, tempfile, io +import argparse +import io +import os +import subprocess +import tarfile + def ldd(executable): '''Given an executable file, return a dictionary with the keys @@ -44,6 +49,7 @@ def ldd(executable): libraries[elements[0]] = os.path.realpath(elements[2]) return libraries + ap = argparse.ArgumentParser(description='Create a relocatable scylla package.') ap.add_argument('dest', help='Destination file (tar format)') @@ -90,7 +96,7 @@ ar = tarfile.open(output, mode='w') # # bin/scylla args -> libexec/scylla libexec/scylla.bin args -> lib/ld.so libexec/scylla.bin args -thunk=b'''\ +thunk = b'''\ #!/bin/bash x="$(readlink -f "$0")"