From: Zac Medico Date: Sat, 3 May 2008 21:23:40 +0000 (-0000) Subject: Don't clean out old resume lists when in --ask or --pretend mode. X-Git-Tag: v2.1.5~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c99817691201f22e147f8088be8c7b1714a846a2;p=portage.git Don't clean out old resume lists when in --ask or --pretend mode. (trunk r10141) svn path=/main/branches/2.1.2/; revision=10142 --- 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: