Commit c23ef5cd authored by Rafael Monnerat's avatar Rafael Monnerat

slapos.package: Use install rather them update.

parent d948a3fe
...@@ -191,10 +191,10 @@ class Zypper: ...@@ -191,10 +191,10 @@ class Zypper:
def updateRepository(self, caller): def updateRepository(self, caller):
""" Add a repository """ """ Add a repository """
caller(['zypper', '--gpg-auto-import-keys', 'up', '-Dly'], stdout=None) caller(['zypper', '--gpg-auto-import-keys', 'in', '-Dly'], stdout=None)
def isUpgradable(self, caller, name): def isUpgradable(self, caller, name):
output, err = caller(['zypper', '--gpg-auto-import-keys', 'up', '-ly']) output, err = caller(['zypper', '--gpg-auto-import-keys', 'up', '-ly'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
for line in output.splitlines(): for line in output.splitlines():
if line.startswith("'%s' is already installed." % name): if line.startswith("'%s' is already installed." % name):
return False return False
...@@ -203,7 +203,7 @@ class Zypper: ...@@ -203,7 +203,7 @@ class Zypper:
def installSoftwareList(self, caller, name_list): def installSoftwareList(self, caller, name_list):
""" Instal Software """ """ Instal Software """
self.updateRepository(caller) self.updateRepository(caller)
command_list = ['zypper', '--gpg-auto-import-keys', 'up', '-ly'] command_list = ['zypper', '--gpg-auto-import-keys', 'in', '-ly']
command_list.extend(name_list) command_list.extend(name_list)
caller(command_list, stdout=None) caller(command_list, stdout=None)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment