summaryrefslogtreecommitdiff
path: root/src/backend/uninstall.py
blob: 748e08508648752d1635e3c85a681aeb7f82bde5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/python3

import subprocess
import sisyphus.check
import sisyphus.database

def start(pkgname):
    sisyphus.check.root()
    portageExec = subprocess.Popen(['emerge', '--quiet', '--depclean', '--ask'] + list(pkgname))
    portageExec.wait()
    sisyphus.database.syncLocal()