[packages] corrected packages syntax errors
This commit is contained in:
parent
d8bd2b22a7
commit
dd8bf404e8
@ -99,7 +99,9 @@ class PackageManager:
|
||||
elif self.backend == "zypp":
|
||||
check_target_env_call(["zypper", "update"])
|
||||
elif self.backend == "urpmi":
|
||||
check_target_env_call(["urpmi.update", "-a"]) elif self.backend == "apt": check_target_env_call(["apt-get", "update"])
|
||||
check_target_env_call(["urpmi.update", "-a"])
|
||||
elif self.backend == "apt":
|
||||
check_target_env_call(["apt-get", "update"])
|
||||
elif self.backend == "pacman":
|
||||
check_target_env_call(["pacman", "-Sy"])
|
||||
elif self.backend == "portage":
|
||||
@ -107,6 +109,10 @@ class PackageManager:
|
||||
elif self.backend == "entropy":
|
||||
check_target_env_call(["equo", "update"])
|
||||
|
||||
def run(self, script):
|
||||
if script != "":
|
||||
check_target_env_call(scrtip.split(" "))
|
||||
|
||||
|
||||
def subst_locale(list):
|
||||
ret = []
|
||||
@ -146,7 +152,7 @@ def run_operations(pkgman, entry):
|
||||
pkgman.install([package["package"]])
|
||||
pkgman.run(package["post-script"])
|
||||
except subprocess.CalledProcessError:
|
||||
libcalamares.utils.debug("WARNING: could not install packages {}", package["package"])
|
||||
libcalamares.utils.debug("WARNING: could not install packages {}".format(package["package"]))
|
||||
else:
|
||||
try:
|
||||
pkgman.install(entry[key])
|
||||
|
Loading…
Reference in New Issue
Block a user