refine warn_text coding

fixed superfluous whitespace
main
Alf Gaida 8 years ago
parent 122667f9a7
commit fe14559f2f

@ -170,7 +170,8 @@ def run_operations(pkgman, entry):
pkgman.install([package])
except subprocess.CalledProcessError:
warn_text = "WARNING: could not install package "
libcalamares.utils.debug(warn_text + package)
warn_text += package
libcalamares.utils.debug(warn_text)
else:
try:
pkgman.run(package["pre-script"])
@ -178,8 +179,8 @@ def run_operations(pkgman, entry):
pkgman.run(package["post-script"])
except subprocess.CalledProcessError:
warn_text = "WARNING: could not install packages "
libcalamares.utils.debug(warn_text
+ package["package"])
warn_text += package["package"]
libcalamares.utils.debug(warn_text)
elif key == "remove":
pkgman.remove(entry[key])
elif key == "try_remove":
@ -188,7 +189,8 @@ def run_operations(pkgman, entry):
pkgman.remove([package])
except subprocess.CalledProcessError:
warn_text = "WARNING: could not remove package "
libcalamares.utils.debug( warn_text + package)
warn_text += package
libcalamares.utils.debug(warn_text)
elif key == "localInstall":
pkgman.install(entry[key], from_local=True)

Loading…
Cancel
Save