summaryrefslogtreecommitdiff
path: root/src/backend/libsisyphus.py
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-10-17 23:46:41 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-10-17 23:46:41 +0100
commit6563f80b975e662e30ac98084c0336f57a3175cc (patch)
treef1e049835a81ec0db01bff40af65dc6232927615 /src/backend/libsisyphus.py
parent46bdb849165a511fbf0efb87cc5c9f34e0a87d8e (diff)
do some housekeeping and garbage collection once finishedv3.1910.1
Diffstat (limited to 'src/backend/libsisyphus.py')
-rw-r--r--src/backend/libsisyphus.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/backend/libsisyphus.py b/src/backend/libsisyphus.py
index aab0522..1cb23cb 100644
--- a/src/backend/libsisyphus.py
+++ b/src/backend/libsisyphus.py
@@ -245,6 +245,10 @@ def syncPortageConfig():
gitExecStage3.wait()
gitExecStage4 = subprocess.Popen(['git', 'stash', 'apply'], stdout=subprocess.PIPE)
gitExecStage4.wait()
+ gitExecStage5 = subprocess.Popen(['git', 'stash', 'clear'], stdout=subprocess.PIPE)
+ gitExecStage5.wait()
+ gitExecStage6 = subprocess.Popen(['git', 'gc', '--prune=now'], stdout=subprocess.PIPE)
+ gitExecStage6.wait()
def regenPortageMetadata():
if os.path.isdir(portageMetadataDir):