svn path=/main/trunk/; revision=9012
if mycpv in pkg_paths:
# All is first, so it's preferred.
continue
- if not mycat:
+ if not self._category_re.match(mycat):
writemsg(("!!! Binary package has an " + \
"unrecognized category: '%s'\n") % full_path,
noiselevel=-1)
continue
mycat = self.remotepkgs[mypkg]["CATEGORY"].strip()
fullpkg = mycat+"/"+mypkg[:-5]
- if not mycat:
+ if not self._category_re.match(mycat):
writemsg(("!!! Remote binary package has an " + \
"unrecognized category: '%s'\n") % fullpkg,
noiselevel=-1)