fixed typos

pull/114/head
Alin Trăistaru 8 years ago
parent 5266992ac4
commit 349dca6f22

@ -51,14 +51,14 @@ def extract_iso(src, dst, pattern=None, suppress_out=True):
# gen.log('Executing', _cmd) # gen.log('Executing', _cmd)
_7zip_process = subprocess.Popen(_cmd, universal_newlines=True, stdin=subprocess.PIPE, stderr=subprocess.PIPE, _7zip_process = subprocess.Popen(_cmd, universal_newlines=True, stdin=subprocess.PIPE, stderr=subprocess.PIPE,
stdout=subprocess.PIPE, shell=True) stdout=subprocess.PIPE, shell=True)
config.status_text = 'Extracting ' + os.path.basename(src) config.status_text = 'Status: Extracting ' + os.path.basename(src).strip()
while True: while True:
line = _7zip_process.stdout.readline() line = _7zip_process.stdout.readline()
# gen.log(line) # gen.log(line)
if line.startswith('- '): if line.startswith('- '):
config.status_text = 'Extracting ' + line[2:] config.status_text = 'Status: Extracting ' + line[2:].strip()
elif platform.system() == 'Linux': # line.startswith('Extracting'): # Under Linux it prints directly all the process (may be due to version diff). elif platform.system() == 'Linux': # line.startswith('Extracting'): # Under Linux it prints directly all the process (may be due to version diff).
config.status_text = line config.status_text = 'Status: ' + line.strip()
if line == '' and _7zip_process.poll() != None: if line == '' and _7zip_process.poll() != None:
break break

@ -84,7 +84,7 @@ def print_version():
Simple log the version number of the multibootusb application Simple log the version number of the multibootusb application
:return: :return:
""" """
log('multibootusb version : ', mbusb_version()) log('multibootusb version: ', mbusb_version())
def quote(text): def quote(text):
@ -203,7 +203,7 @@ def copy_mbusb_dir_usb(usb_disk):
except: except:
return False return False
else: else:
log('multibootus directory already exist. Not copying.') log('multibootusb directory already exists. Not copying.')
def read_input_yes(): def read_input_yes():

@ -50,7 +50,7 @@ def dd_linux():
break break
if dd_process.poll() is not None: if dd_process.poll() is not None:
log("Executing ==> sync") log("\nExecuting ==> sync")
os.system("sync") os.system("sync")
log("ISO has been written to USB disk...") log("ISO has been written to USB disk...")
return return

Loading…
Cancel
Save