diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-10-01 17:37:18 +0200 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-10-01 18:30:37 +0200 |
commit | 7da9ccb56c2bf7f9b8ce79c9e29830b8cf5f59c0 (patch) | |
tree | 29d00b0643ebc82c7dd33de94d6f7e740560c0dc | |
parent | ff77871f904f0811dde200529879dc9d23351fa9 (diff) | |
download | vendor_replicant-scripts-7da9ccb56c2bf7f9b8ce79c9e29830b8cf5f59c0.tar.gz vendor_replicant-scripts-7da9ccb56c2bf7f9b8ce79c9e29830b8cf5f59c0.tar.bz2 vendor_replicant-scripts-7da9ccb56c2bf7f9b8ce79c9e29830b8cf5f59c0.zip |
add_adb_root: fix lines over 80 characters and a whitespace issue
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-x | images/add_adb_root/add_adb_root.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/images/add_adb_root/add_adb_root.py b/images/add_adb_root/add_adb_root.py index b13d69f..f8ac4f2 100755 --- a/images/add_adb_root/add_adb_root.py +++ b/images/add_adb_root/add_adb_root.py @@ -30,7 +30,8 @@ class ImageType(enum.Enum): bootimage = 2 def usage(progname): - print("{} <path/to/old/recovery.img> <path/to/new/recovery.img>".format(progname)) + print("{} <path/to/old/recovery.img> <path/to/new/recovery.img>".format( + progname)) sys.exit(1) def automatically_identify_file(path): @@ -171,7 +172,7 @@ def add_adb_to_zImage(input_file, output_file): ramdisk = ramdisk_dir + os.sep + f # example: in - # /tmp/tmp.dkbDvuu7PL/_recovery-i9100.img.extracted/_1E74.extracted/32C9C.cpio + # /tmp/tmp.[...]/_recovery-i9100.img.extracted/_1E74.extracted/32C9C.cpio # we want 0x32C9C as int ramdisk_offset = int("0x" + os.path.basename(ramdisk)[0:-5], 16) @@ -244,7 +245,6 @@ def add_adb_to_bootimage(input_file, output_file): "-o", output_file) if __name__ == "__main__": - if len(sys.argv) != 3: usage(sys.argv[0]) |