summaryrefslogtreecommitdiff
path: root/src/backend/uninstall.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2024-02-08 17:03:27 +0000
committerV3n3RiX <venerix@koprulu.sector>2024-02-08 17:03:27 +0000
commit9ed56fa654c9eba8b644308cebf002af504a2b09 (patch)
treea69243ca57d6cf561e8d456a83bcaa65dff270de /src/backend/uninstall.py
parent5cf564d3b5109c2a9e4b5917eb7d834f8b911d3b (diff)
I love pickles
Diffstat (limited to 'src/backend/uninstall.py')
-rw-r--r--src/backend/uninstall.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/backend/uninstall.py b/src/backend/uninstall.py
index ede3947..3900f4b 100644
--- a/src/backend/uninstall.py
+++ b/src/backend/uninstall.py
@@ -2,11 +2,14 @@
import atexit
import io
+import os
+import pickle
import signal
import subprocess
import sys
import sisyphus.checkenv
import sisyphus.getcolor
+import sisyphus.getfs
import sisyphus.killemerge
import sisyphus.solverdeps
import sisyphus.syncdb
@@ -28,9 +31,12 @@ def start(pkgname, depclean=False, gfx_ui=False, unmerge=False):
sys.exit()
else:
if gfx_ui:
- is_needed = sisyphus.solverdeps.start.__wrapped__(pkgname)
+ sisyphus.solverdeps.start.__wrapped__(pkgname)
else:
- is_needed = sisyphus.solverdeps.start(pkgname)
+ sisyphus.solverdeps.start(pkgname)
+
+ is_needed = pickle.load(
+ open(os.path.join(sisyphus.getfs.p_mtd_dir, "sisyphus_pkgrdeps.pickle"), "rb"))
if is_needed != 0:
if gfx_ui: