From ad95927e5b910eba9c35559b4631bb07563b9567 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Sep 2017 22:52:59 +0100 Subject: sisyphus : objectify package list arguments, get rid of xterm, run operations in background, progress bar to be implemented soon --- src/frontend/cli/sisyphus-cli.py | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'src/frontend/cli/sisyphus-cli.py') diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py index ba92b7a..f0b9c9e 100755 --- a/src/frontend/cli/sisyphus-cli.py +++ b/src/frontend/cli/sisyphus-cli.py @@ -5,29 +5,31 @@ from libsisyphus import * check_system_mode() +PKGLIST = sys.argv[2:] + if "__main__" == __name__: if "install" in sys.argv[1:]: - sisyphus_pkg_install() + sisyphus_pkg_install(PKGLIST) elif "uninstall" in sys.argv[1:]: - sisyphus_pkg_uninstall() + sisyphus_pkg_uninstall(PKGLIST) elif "force-uninstall" in sys.argv[1:]: - sisyphus_pkg_force_uninstall() + sisyphus_pkg_force_uninstall(PKGLIST) elif "remove-orphans" in sys.argv[1:]: sisyphus_pkg_remove_orphans() elif "upgrade" in sys.argv[1:]: sisyphus_pkg_system_upgrade() elif "auto-install" in sys.argv[1:]: - sisyphus_pkg_auto_install() + sisyphus_pkg_auto_install(PKGLIST) elif "auto-uninstall" in sys.argv[1:]: - sisyphus_pkg_auto_uninstall() + sisyphus_pkg_auto_uninstall(PKGLIST) elif "auto-force-uninstall" in sys.argv[1:]: - sisyphus_pkg_auto_force_uninstall() + sisyphus_pkg_auto_force_uninstall(PKGLIST) elif "auto-remove-orphans" in sys.argv[1:]: sisyphus_pkg_auto_remove_orphans() elif "auto-upgrade" in sys.argv[1:]: sisyphus_pkg_auto_system_upgrade() elif "search" in sys.argv[1:]: - sisyphus_pkg_search() + sisyphus_pkg_search(PKGLIST) elif "update" in sys.argv[1:]: sisyphus_pkg_system_update() elif "spmsync" in sys.argv[1:]: -- cgit v1.2.3