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