summaryrefslogtreecommitdiffstats
path: root/bin/emerge
diff options
context:
space:
mode:
Diffstat (limited to 'bin/emerge')
-rwxr-xr-xbin/emerge11
1 files changed, 6 insertions, 5 deletions
diff --git a/bin/emerge b/bin/emerge
index 2122ee0a5..80cdaf737 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -7815,11 +7815,12 @@ def action_build(settings, trees, mtimedb,
if not success:
mydepgraph.display_problems()
- # delete the current list and also the backup
- # since it's probably stale too.
- for k in ("resume", "resume_backup"):
- mtimedb.pop(k, None)
- mtimedb.commit()
+ if not (ask or pretend):
+ # delete the current list and also the backup
+ # since it's probably stale too.
+ for k in ("resume", "resume_backup"):
+ mtimedb.pop(k, None)
+ mtimedb.commit()
return 1
else: