summaryrefslogtreecommitdiff
path: root/src/backend
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-06-06 19:32:48 +0100
committerV3n3RiX <venerix@redcorelinux.org>2020-06-06 19:32:48 +0100
commit2d86cd9ddc5d9442e4a8e8fb50d72480a8293a4a (patch)
tree59cecf3bc71168b7a32b449aac436b0474147525 /src/backend
parent1ec0c210ca2cbdb729a416e37a50d4b9a6a0dfa0 (diff)
minor fixes, make the gui client work with the new backend
Diffstat (limited to 'src/backend')
-rw-r--r--src/backend/__init__.py2
-rw-r--r--src/backend/cache.py (renamed from src/backend/clean.py)3
-rw-r--r--src/backend/update.py4
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()