summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-05-03 21:22:20 +0000
committerZac Medico <zmedico@gentoo.org>2008-05-03 21:22:20 +0000
commiteea2e7ecbc3004a849ecbdc50ceb27fe3bbc6990 (patch)
tree43c3e38f9dd5e25efd5b3347290c533dd132cabf
parentdfa13f86081c2c13b330d162f754d4fead15544c (diff)
downloadportage-eea2e7ecbc3004a849ecbdc50ceb27fe3bbc6990.tar.gz
portage-eea2e7ecbc3004a849ecbdc50ceb27fe3bbc6990.tar.bz2
portage-eea2e7ecbc3004a849ecbdc50ceb27fe3bbc6990.zip
Don't clean out old resume lists when in --ask or --pretend mode.
svn path=/main/trunk/; revision=10141
-rw-r--r--pym/_emerge/__init__.py11
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: