diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-02-08 17:03:27 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-02-08 17:03:27 +0000 |
commit | 9ed56fa654c9eba8b644308cebf002af504a2b09 (patch) | |
tree | a69243ca57d6cf561e8d456a83bcaa65dff270de /src/backend/solverdeps.py | |
parent | 5cf564d3b5109c2a9e4b5917eb7d834f8b911d3b (diff) |
I love pickles
Diffstat (limited to 'src/backend/solverdeps.py')
-rw-r--r-- | src/backend/solverdeps.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/solverdeps.py b/src/backend/solverdeps.py index b866cc8..97d19dd 100644 --- a/src/backend/solverdeps.py +++ b/src/backend/solverdeps.py @@ -1,9 +1,12 @@ #!/usr/bin/python3 import animation +import os +import pickle import signal import subprocess import sys +import sisyphus.getfs def sigint_handler(signal, frame): @@ -27,6 +30,8 @@ def start(pkgname=None): if any(key in p_out for key in ["pulled in by:", "required"]): is_needed = int(1) + pickle.dump(is_needed, open(os.path.join( + sisyphus.getfs.p_mtd_dir, "sisyphus_pkgrdeps.pickle"), "wb")) except KeyboardInterrupt: p_exe.terminate() try: @@ -34,4 +39,3 @@ def start(pkgname=None): except subprocess.TimeoutExpired: p_exe.kill() sys.exit() - return is_needed |