scripts: coding style fixes
scripts/create-relocatable-package.py:24:1: F401 'shutil' imported but unused scripts/create-relocatable-package.py:24:1: F401 'tempfile' imported but unused scripts/create-relocatable-package.py:24:16: E401 multiple imports on one line scripts/create-relocatable-package.py:26:1: E302 expected 2 blank lines, found 1 scripts/create-relocatable-package.py:47:1: E305 expected 2 blank lines after class or function definition, found 1 scripts/create-relocatable-package.py:93:6: E225 missing whitespace around operator Signed-off-by: Alexys Jacob <ultrabug@gentoo.org> Message-Id: <20180917152520.5032-1-ultrabug@gentoo.org>
This commit is contained in:
@@ -21,7 +21,12 @@
|
||||
# along with Scylla. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
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")"
|
||||
|
||||
Reference in New Issue
Block a user