summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-07-10 01:08:25 +0000
committerZac Medico <zmedico@gentoo.org>2006-07-10 01:08:25 +0000
commitdd8139157618041992a384ab05f5dfb6b962ffa5 (patch)
treea2a67a1263764923fba35c4a27f4a77612dc8135 /bin
parent9ff39467e5a66ab3eb8eeea577dbf2a597e601db (diff)
downloadportage-dd8139157618041992a384ab05f5dfb6b962ffa5.tar.gz
portage-dd8139157618041992a384ab05f5dfb6b962ffa5.tar.bz2
portage-dd8139157618041992a384ab05f5dfb6b962ffa5.zip
Start at the end of the list so that the index works properly after items are deleted.
svn path=/main/trunk/; revision=3828
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/emerge b/bin/emerge
index ec86a3635..5d07b2f3d 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1018,7 +1018,7 @@ class depgraph:
myeb_pkg_matches = bindb.match(x)
if "--usepkgonly" not in self.myopts:
# Remove any binary package entries that are masked in the portage tree (#55871)
- for idx in xrange(len(myeb_pkg_matches)):
+ for idx in xrange(len(myeb_pkg_matches)-1, -1, -1):
if myeb_pkg_matches[idx] not in myeb_matches and \
portdb.cpv_exists(myeb_pkg_matches[idx]):
del myeb_pkg_matches[idx]