Fix references to dbapi._category_re.
authorZac Medico <zmedico@gentoo.org>
Fri, 21 Dec 2007 01:27:04 +0000 (01:27 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 21 Dec 2007 01:27:04 +0000 (01:27 -0000)
svn path=/main/trunk/; revision=9013

pym/portage/dbapi/bintree.py

index 91695a456a08a0e563d8a04889a2111ff7ff2607..5464d5d98e576e181556425765d5e6978942e7fb 100644 (file)
@@ -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)