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
def sys_uninstall(packages): return shell('apt-get remove %s' % " ".join(packages))
def sys_upgrade(packages): return shell('apt-get upgrade %s' % " ".join(packages))
def sys_install(packages): return shell('apt-get install %s' % " ".join(packages))