summaryrefslogtreecommitdiff
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-12-21 01:27:04 +0000
committerZac Medico <zmedico@gentoo.org>2007-12-21 01:27:04 +0000
commit1298f0fa909c44d93edb26ec706e4a11ca44383e (patch)
tree3b4c002124a23b83c24d3e36a0e4b6189ac092a9 /pym
parentUse regex category validation in binarytree.populate(). (diff)
downloadportage-idfetch-1298f0fa909c44d93edb26ec706e4a11ca44383e.tar.gz
portage-idfetch-1298f0fa909c44d93edb26ec706e4a11ca44383e.tar.bz2
portage-idfetch-1298f0fa909c44d93edb26ec706e4a11ca44383e.zip
Fix references to dbapi._category_re.
svn path=/main/trunk/; revision=9013
Diffstat (limited to 'pym')
-rw-r--r--pym/portage/dbapi/bintree.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py
index 91695a45..5464d5d9 100644
--- a/pym/portage/dbapi/bintree.py
+++ b/pym/portage/dbapi/bintree.py
@@ -494,7 +494,7 @@ class binarytree(object):
if mycpv in pkg_paths:
# All is first, so it's preferred.
continue
- if not self._category_re.match(mycat):
+ if not self.dbapi._category_re.match(mycat):
writemsg(("!!! Binary package has an " + \
"unrecognized category: '%s'\n") % full_path,
noiselevel=-1)
@@ -654,7 +654,7 @@ class binarytree(object):
continue
mycat = self.remotepkgs[mypkg]["CATEGORY"].strip()
fullpkg = mycat+"/"+mypkg[:-5]
- if not self._category_re.match(mycat):
+ if not self.dbapi._category_re.match(mycat):
writemsg(("!!! Remote binary package has an " + \
"unrecognized category: '%s'\n") % fullpkg,
noiselevel=-1)