diff options
-rw-r--r-- | pym/_emerge/__init__.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index fab89f17f..a76d73cbf 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -7804,11 +7804,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: |