SpanKY likes the latin categories
authorAlec Warner <antarus@gentoo.org>
Thu, 11 Jan 2007 21:52:33 +0000 (21:52 -0000)
committerAlec Warner <antarus@gentoo.org>
Thu, 11 Jan 2007 21:52:33 +0000 (21:52 -0000)
svn path=/main/trunk/; revision=5573

pym/portage_versions.py

index 929595c130f20be81f304ba5094b98bcb37384dd..7153191671f20ccf54df7bf42ceb1ca9814ffa1a 100644 (file)
@@ -267,7 +267,7 @@ def catpkgsplit(mydata,silent=1):
        """
        
        # Categories may contain a-zA-z0-9+_- but cannot start with -
-       valid_category = re.compile("^[A-Za-z0-9+_][A-Za-z0-9+_-]*")
+       valid_category = re.compile("^\w[\w-]*")
        try:
                if not catcache[mydata]:
                        return None