summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-15 21:17:37 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-15 21:17:37 +0000
commit37a5c4f4c0e3fbb77a4056d437ea067d69ece2aa (patch)
tree217aa333b64eb290defc63ef1d53c0185bcb2b4e
parent6a30405e4d3bb39d00fd069e2521126520542d5c (diff)
downloadportage-37a5c4f4c0e3fbb77a4056d437ea067d69ece2aa.tar.gz
portage-37a5c4f4c0e3fbb77a4056d437ea067d69ece2aa.tar.bz2
portage-37a5c4f4c0e3fbb77a4056d437ea067d69ece2aa.zip
In Scheduler._restart_if_necessary(), use list.remove() instead of assuming
that portage is first in the resume list. svn path=/main/trunk/; revision=11061
-rw-r--r--pym/_emerge/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index ac21e5f3f..ac8456358 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -8760,7 +8760,7 @@ class Scheduler(PollScheduler):
"emerge via exec() after change of " + \
"portage version.")
- del mtimedb["resume"]["mergelist"][0]
+ mtimedb["resume"]["mergelist"].remove(list(pkg))
mtimedb.commit()
portage.run_exitfuncs()
mynewargv = [sys.argv[0], "--resume"]