summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/emerge4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index 081b7f6a4..30ba8ec3d 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -2134,6 +2134,10 @@ class depgraph:
# Unsafe for parallel merges
del portage.mtimedb["resume"]["mergelist"][0]
+ # Commit after each merge so that --resume may still work in
+ # in the event that portage is not allowed to exit normally
+ # due to power failure, SIGKILL, etc...
+ portage.commit_mtimedb()
emergelog(" *** Finished. Cleaning up...")