- time_beg=time.time()
- log.write( "extracting %s in %s\n" % (dest_file,SYSIMG_PATH) )
- result = utils.sysexec( "tar -C %s -xpf %s %s" % (SYSIMG_PATH,dest_file,uncompress_option), log )
- time_end=time.time()
- duration=int(time_end-time_beg)
- log.write( "Done extracting (%s seconds)\n"%duration)
- utils.removefile( dest_file )
+ time_beg = time.time()
+ log.write("extracting {} in {}\n".format(dest_file, SYSIMG_PATH))
+ result = utils.sysexec("tar -C {} -xpf {} {}".format(SYSIMG_PATH, dest_file, uncompress_option), log)
+ time_end = time.time()
+ duration = int(time_end - time_beg)
+ log.write("Done extracting ({} seconds)\n".format(duration))
+ utils.removefile(dest_file)