From ac0efd1bd6c703147bd8d3caedf489fab87d6131 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 6 Jun 2020 16:22:04 +0100 Subject: big rewrite : split the backend in smaller pieces, rework the cli frontend to work with the new backend ... gui frontend wip --- src/backend/uninstall.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/backend/uninstall.py (limited to 'src/backend/uninstall.py') diff --git a/src/backend/uninstall.py b/src/backend/uninstall.py new file mode 100644 index 0000000..8dc9e34 --- /dev/null +++ b/src/backend/uninstall.py @@ -0,0 +1,11 @@ +#!/usr/bin/python3 + +import subprocess +import sisyphus.check +import sisyphus.sync + +def start(pkgList): + sisyphus.check.root() + portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'] + pkgList) + portageExec.wait() + sisyphus.database.syncLocal() -- cgit v1.2.3