summaryrefslogtreecommitdiff
path: root/src/frontend/cli/sisyphus-cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/cli/sisyphus-cli.py')
-rwxr-xr-xsrc/frontend/cli/sisyphus-cli.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/frontend/cli/sisyphus-cli.py b/src/frontend/cli/sisyphus-cli.py
index 93963dd..ff918b8 100755
--- a/src/frontend/cli/sisyphus-cli.py
+++ b/src/frontend/cli/sisyphus-cli.py
@@ -174,6 +174,14 @@ def autoremove():
"""
sisyphus.autoremove.start()
+@app.command("autoclean")
+def autoclean():
+ """Clean the binary package cache and the source tarball cache"""
+ if sisyphus.checkenv.root():
+ sisyphus.purgeenv.cache()
+ else:
+ sys.exit("\nYou need root permissions to do this, exiting!\n")
+
@app.command("update")
def update():
"""Update the Portage tree, the Redcore Overlay(s), Portage configs and Sisyphus's package database."""