and also simplify the catagory regex a bit. (trunk r9010)
svn path=/main/branches/2.1.2/; revision=9011
class dbapi:
- _category_re = re.compile(r'^[+\w][-\.+\w]*$')
+ _category_re = re.compile(r'^\w[-.+\w]*$')
+ _pkg_dir_name_re = re.compile(r'^\w[-+\w]*$')
def __init__(self):
pass
self._non_category_dirs.match(x):
continue
for y in listdir(oroot+"/"+x, EmptyOnError=1, ignorecvs=1, dirsonly=1):
+ if not self._pkg_dir_name_re.match(y) or \
+ y == "CVS":
+ continue
d[x+"/"+y] = None
l = d.keys()
l.sort()