aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-02-02 23:48:55 -0800
committerZac Medico <zmedico@gentoo.org>2011-02-02 23:48:55 -0800
commita91c01e480288cea6ae2cfc49d5ea72803cd4724 (patch)
tree21b6162ef1f22a7541b270447d9cd5a246561dab /pym/portage/dbapi/bintree.py
parentdepgraph: use catsplit where appropriate (diff)
downloadportage-a91c01e480288cea6ae2cfc49d5ea72803cd4724.tar.gz
portage-a91c01e480288cea6ae2cfc49d5ea72803cd4724.tar.bz2
portage-a91c01e480288cea6ae2cfc49d5ea72803cd4724.zip
bintree: cleanup/fix old binhost code more
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r--pym/portage/dbapi/bintree.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 6e58608a3..993df7714 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -1,4 +1,4 @@
-# Copyright 1998-2010 Gentoo Foundation
+# Copyright 1998-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
__all__ = ["bindbapi", "binarytree"]
@@ -911,13 +911,12 @@ class binarytree(object):
remotepkgs = portage.getbinpkg.dir_get_metadata(
base_url, chunk_size=chunk_size)
- for mypkg, remote_metadata in list(remotepkgs.items()):
+ for mypkg, remote_metadata in remotepkgs.items():
mycat = remote_metadata.get("CATEGORY")
if mycat is None:
#old-style or corrupt package
writemsg(_("!!! Invalid remote binary package: %s\n") % mypkg,
noiselevel=-1)
- del remotepkgs[mypkg]
continue
mycat = mycat.strip()
fullpkg = mycat+"/"+mypkg[:-5]
@@ -961,7 +960,6 @@ class binarytree(object):
except:
writemsg(_("!!! Failed to inject remote binary package: %s\n") % fullpkg,
noiselevel=-1)
- del remotepkgs[mypkg]
continue
self.populated=1