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