summaryrefslogtreecommitdiff
path: root/src/backend/uninstall.py
blob: 1ceb0ba48e275abadead1d9012095175884d24ee (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(pkgname):
    sisyphus.check.root()
    portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'] + list(pkgname))
    portageExec.wait()
    sisyphus.database.syncLocal()