From c99817691201f22e147f8088be8c7b1714a846a2 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 3 May 2008 21:23:40 +0000 Subject: [PATCH] Don't clean out old resume lists when in --ask or --pretend mode. (trunk r10141) svn path=/main/branches/2.1.2/; revision=10142 --- bin/emerge | 11 ++++++----- 1 file 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: -- 2.26.2