diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-12-21 01:16:27 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-12-21 01:16:27 +0000 |
commit | eedeb52d39a70a253b33f7ce8e78bb05ff7f29bd (patch) | |
tree | 9e8c35784e0deeeba2ef8c004350751cf0db9273 /pym/portage/dbapi/__init__.py | |
parent | Add "metadata" and "licenses" to _non_category_dirs. (diff) | |
download | portage-eedeb52d39a70a253b33f7ce8e78bb05ff7f29bd.tar.gz portage-eedeb52d39a70a253b33f7ce8e78bb05ff7f29bd.tar.bz2 portage-eedeb52d39a70a253b33f7ce8e78bb05ff7f29bd.zip |
Use a regex to validate package directory names in portdbapi.cp_list()
and also simplify the catagory regex a bit.
svn path=/main/trunk/; revision=9010
Diffstat (limited to 'pym/portage/dbapi/__init__.py')
-rw-r--r-- | pym/portage/dbapi/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dbapi/__init__.py b/pym/portage/dbapi/__init__.py index a1de0695f..0e473ddd1 100644 --- a/pym/portage/dbapi/__init__.py +++ b/pym/portage/dbapi/__init__.py @@ -13,7 +13,8 @@ from portage.versions import catpkgsplit, catsplit, pkgcmp class dbapi(object): - _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 |