
run_command() expects a list of command and arguments instead of a string. Fix it to avoid error on Kimchi start up on openSUSE systems: [Errno 2] No such file or directory Failed to run command: z y p p e r - - h e l p. Signed-off-by: Aline Manera <alinefm@linux.vnet.ibm.com> --- src/kimchi/swupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kimchi/swupdate.py b/src/kimchi/swupdate.py index 5ea36f1..5b24ce0 100644 --- a/src/kimchi/swupdate.py +++ b/src/kimchi/swupdate.py @@ -56,7 +56,7 @@ class SoftwareUpdate(object): kimchi_log.info("Loading AptUpdate features.") self._pkg_mnger = AptUpdate() except ImportError: - zypper_help = "zypper --help" + zypper_help = ["zypper", "--help"] (stdout, stderr, returncode) = run_command(zypper_help) if returncode == 0: kimchi_log.info("Loading ZypperUpdate features.") -- 1.9.3