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