@@ -146,6 +146,7 @@ def verify_files(filename, destination, rename_to):
146
146
147
147
return True
148
148
149
+
149
150
def is_latest_version (destination , dirname , rename_to , cfile , checksum ):
150
151
current_version = None
151
152
expected_version = None
@@ -174,6 +175,7 @@ def is_latest_version(destination, dirname, rename_to, cfile, checksum):
174
175
175
176
return False
176
177
178
+
177
179
def unpack (filename , destination , force_extract , checksum ): # noqa: C901
178
180
dirname = ""
179
181
cfile = None # Compressed file
@@ -409,21 +411,17 @@ def identify_platform():
409
411
if __name__ == "__main__" :
410
412
parser = argparse .ArgumentParser (description = "Download and extract tools" )
411
413
412
- parser .add_argument ("-v" , "--verbose" , action = ' store_true' , required = False , help = "Print verbose output" )
414
+ parser .add_argument ("-v" , "--verbose" , action = " store_true" , required = False , help = "Print verbose output" )
413
415
414
- parser .add_argument (
415
- "-d" , "--force_download" , action = 'store_true' , required = False , help = "Force download of tools"
416
- )
416
+ parser .add_argument ("-d" , "--force_download" , action = "store_true" , required = False , help = "Force download of tools" )
417
417
418
- parser .add_argument (
419
- "-e" , "--force_extract" , action = 'store_true' , required = False , help = "Force extraction of tools"
420
- )
418
+ parser .add_argument ("-e" , "--force_extract" , action = "store_true" , required = False , help = "Force extraction of tools" )
421
419
422
420
parser .add_argument (
423
- "-f" , "--force_all" , action = ' store_true' , required = False , help = "Force download and extraction of tools"
421
+ "-f" , "--force_all" , action = " store_true" , required = False , help = "Force download and extraction of tools"
424
422
)
425
423
426
- parser .add_argument ("-t" , "--test" , action = ' store_true' , required = False , help = argparse .SUPPRESS )
424
+ parser .add_argument ("-t" , "--test" , action = " store_true" , required = False , help = argparse .SUPPRESS )
427
425
428
426
args = parser .parse_args ()
429
427
0 commit comments