summaryrefslogtreecommitdiff
path: root/src/backend/uninstallforce.py
blob: 90de980106134a36638006e085eb8dd99d734de1 (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', '--unmerge', '--ask'] + list(pkgname))
    portageExec.wait()
    sisyphus.database.syncLocal()