diff options
Diffstat (limited to 'src/backend')
-rw-r--r-- | src/backend/__init__.py | 2 | ||||
-rw-r--r-- | src/backend/cache.py (renamed from src/backend/clean.py) | 3 | ||||
-rw-r--r-- | src/backend/update.py | 4 |
3 files changed, 5 insertions, 4 deletions
diff --git a/src/backend/__init__.py b/src/backend/__init__.py index 1b012e3..c5f8f58 100644 --- a/src/backend/__init__.py +++ b/src/backend/__init__.py @@ -3,8 +3,8 @@ from .branchinject import * from .branchmaster import * from .branchnext import * from .branchreset import * +from .cache import * from .check import * -from .clean import * from .csvfiles import * from .database import * from .help import * diff --git a/src/backend/clean.py b/src/backend/cache.py index 2460d9e..aaa0a32 100644 --- a/src/backend/clean.py +++ b/src/backend/cache.py @@ -1,10 +1,11 @@ #!/usr/bin/python3 import os +import shutil portageCacheDir = '/var/cache/packages' -def cache(): +def clean(): if os.path.isdir(portageCacheDir): for files in os.listdir(portageCacheDir): if os.path.isfile(os.path.join(portageCacheDir, files)): diff --git a/src/backend/update.py b/src/backend/update.py index dd184d2..738de3a 100644 --- a/src/backend/update.py +++ b/src/backend/update.py @@ -1,8 +1,8 @@ #!/usr/bin/python3 import animation +import sisyphus.cache import sisyphus.check -import sisyphus.clean import sisyphus.database import sisyphus.metadata import sisyphus.sync @@ -10,7 +10,7 @@ import sisyphus.sync @animation.wait('fetching updates') def start(): sisyphus.check.root() - sisyphus.clean.cache() + sisyphus.cache.clean() needsPortage = sisyphus.check.portage() needsOverlay = sisyphus.check.overlay() |