summaryrefslogtreecommitdiff
path: root/src/backend/uninstall.py
blob: 8dc9e3467edd3686104e3d9a7f1e28bc156cf6a7 (plain)
1
2
3
4
5
6
7
8
9
10
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()