summaryrefslogtreecommitdiffstats
path: root/pym/portage/versions.py
diff options
context:
space:
mode:
authorAlec Warner <antarus@gentoo.org>2007-03-03 06:15:19 +0000
committerAlec Warner <antarus@gentoo.org>2007-03-03 06:15:19 +0000
commitce777944f4d609e3ab5c334419e80622b9ed76c6 (patch)
tree8a8604bd892124fc25109fe486e8ea6268f533ac /pym/portage/versions.py
parent68d46429aa4091671158538db40eeaa172c53db1 (diff)
downloadportage-ce777944f4d609e3ab5c334419e80622b9ed76c6.tar.gz
portage-ce777944f4d609e3ab5c334419e80622b9ed76c6.tar.bz2
portage-ce777944f4d609e3ab5c334419e80622b9ed76c6.zip
remove category regex, dumb idea, sorry I did it
svn path=/main/trunk/; revision=6138
Diffstat (limited to 'pym/portage/versions.py')
-rw-r--r--pym/portage/versions.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/pym/portage/versions.py b/pym/portage/versions.py
index ecb73f22c..28fda2c62 100644
--- a/pym/portage/versions.py
+++ b/pym/portage/versions.py
@@ -248,8 +248,6 @@ def pkgsplit(mypkg,silent=1):
pkgcache[mypkg]=None
return None
-_valid_category = re.compile("^\w[\w-]*")
-
catcache={}
def catpkgsplit(mydata,silent=1):
"""
@@ -269,7 +267,6 @@ def catpkgsplit(mydata,silent=1):
"""
# Categories may contain a-zA-z0-9+_- but cannot start with -
- global _valid_category
import portage.dep
try:
if not catcache[mydata]:
@@ -283,9 +280,6 @@ def catpkgsplit(mydata,silent=1):
retval=["null"]
p_split=pkgsplit(mydata,silent=silent)
elif len(mysplit)==2:
- if portage.dep._dep_check_strict and \
- not _valid_category.match(mysplit[0]):
- raise InvalidData("Invalid category in %s" %mydata )
retval=[mysplit[0]]
p_split=pkgsplit(mysplit[1],silent=silent)
if not p_split: