remove category regex, dumb idea, sorry I did it
authorAlec Warner <antarus@gentoo.org>
Sat, 3 Mar 2007 06:15:19 +0000 (06:15 -0000)
committerAlec Warner <antarus@gentoo.org>
Sat, 3 Mar 2007 06:15:19 +0000 (06:15 -0000)
svn path=/main/trunk/; revision=6138

pym/portage/versions.py

index ecb73f22c207684b5b158652299c00ba0721b1e7..28fda2c62c027a73d617c486831c03c45a8af34c 100644 (file)
@@ -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: