When a resume list contains packages that are no longer available,
authorZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 04:12:37 +0000 (04:12 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 29 Mar 2008 04:12:37 +0000 (04:12 -0000)
automatically delete it.

svn path=/main/trunk/; revision=9589

pym/_emerge/__init__.py

index e28533be986acf974c8507fd764d9f7ca3ecf113..a4a0dc3d626ddc50ac9ca77d55248da66ef62391 100644 (file)
@@ -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!"