summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-03-29 04:12:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-03-29 04:12:37 +0000
commit8a22957bdf3408868bfc5de5d40d4b4dfbfa5a25 (patch)
tree3ebbca936cf7ff8de39f929743f9b8703c0a32d3
parent996c8e189b7b72737d7e6dcc4fc4168013bf6783 (diff)
downloadportage-8a22957bdf3408868bfc5de5d40d4b4dfbfa5a25.tar.gz
portage-8a22957bdf3408868bfc5de5d40d4b4dfbfa5a25.tar.bz2
portage-8a22957bdf3408868bfc5de5d40d4b4dfbfa5a25.zip
When a resume list contains packages that are no longer available,
automatically delete it. svn path=/main/trunk/; revision=9589
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index e28533be9..a4a0dc3d6 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -6911,6 +6911,8 @@ def action_build(settings, trees, mtimedb,
out.eerror("Error: The resume list contains packages that are no longer")
out.eerror(" available to be emerged. Please restart/continue")
out.eerror(" the merge operation manually.")
+ del mtimedb["resume"]
+ mtimedb.commit()
return 1
if show_spinner:
print "\b\b... done!"