From 4d24942547f6ae7ee0e3881be3801918bacf7fa9 Mon Sep 17 00:00:00 2001 From: Kyle Robertze Date: Thu, 26 Jan 2017 10:36:05 +0200 Subject: [PATCH] corrected packages syntax errors --- src/modules/packages/main.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/modules/packages/main.py b/src/modules/packages/main.py index e2089f7e5..2197ae12c 100644 --- a/src/modules/packages/main.py +++ b/src/modules/packages/main.py @@ -103,7 +103,9 @@ class PackageManager: elif self.backend == "zypp": check_target_env_call(["zypper", "--non-interactive", "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": @@ -111,6 +113,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 = [] @@ -157,7 +163,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"])) elif key == "remove": pkgman.remove(entry[key]) elif key == "try_remove":