svn path=/main/trunk/; revision=5577
# Categories may contain a-zA-z0-9+_- but cannot start with -
global _valid_category
+ import portage_dep
try:
if not catcache[mydata]:
return None
retval=["null"]
p_split=pkgsplit(mydata,silent=silent)
elif len(mysplit)==2:
- if not _valid_category.match(mysplit[0]):
+ 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)