diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-08-04 07:09:35 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-08-04 07:09:35 +0000 |
commit | 34f9b9553c00affb83f0423f37400b3cfc648694 (patch) | |
tree | 7be686e2ce8d0e7763b887876d3197034f7bb82c | |
parent | cea6cc051580eacbf5c4a1433c90d8bf1c68720f (diff) | |
download | portage-34f9b9553c00affb83f0423f37400b3cfc648694.tar.gz portage-34f9b9553c00affb83f0423f37400b3cfc648694.tar.bz2 portage-34f9b9553c00affb83f0423f37400b3cfc648694.zip |
Bug #280259 - Fix emaint to call binarytree._load_pkgindex() for unicode
handling.
svn path=/main/trunk/; revision=13891
-rwxr-xr-x | bin/emaint | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/bin/emaint b/bin/emaint index 0d053d7fb..0bfc88de5 100755 --- a/bin/emaint +++ b/bin/emaint @@ -116,13 +116,8 @@ class BinhostHandler(object): myroot = portage.settings["ROOT"] self._bintree = portage.db[myroot]["bintree"] self._bintree.populate() - self._pkgindex_file = os.path.join(self._bintree.pkgdir, "Packages") - self._pkgindex = self._bintree._new_pkgindex() - f = open(self._pkgindex_file, 'r') - try: - self._pkgindex.read(f) - finally: - f.close() + self._pkgindex_file = self._bintree._pkgindex_file + self._pkgindex = self._bintree._load_pkgindex() def check(self, onProgress=None): missing = [] @@ -178,13 +173,8 @@ class BinhostHandler(object): cpv_all = self._bintree.dbapi.cpv_all() cpv_all.sort() - pkgindex = bintree._new_pkgindex() + pkgindex = bintree._load_pkgindex() self._pkgindex = pkgindex - f = open(self._pkgindex_file, 'r') - try: - self._pkgindex.read(f) - finally: - f.close() metadata = {} for d in pkgindex.packages: |