Exemplo n.º 1
0
 def sys(self, cmds):
     stdout = []
     stderr = []
     for cmd in cmds:
         o, e, returncode = shell(self.path, cmd)
         stdout.append(o)
         stderr.append(e)
     return stdout, stderr
Exemplo n.º 2
0
def sys_uninstall(packages):
    return shell('apt-get remove %s' % " ".join(packages))
    
Exemplo n.º 3
0
def sys_upgrade(packages):
    return shell('apt-get upgrade %s' % " ".join(packages))
Exemplo n.º 4
0
def sys_install(packages):
    return shell('apt-get install %s' % " ".join(packages))