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