( "null/portage*:0", False ),
( ">=null/portage-2.1", True ),
( "~null/portage-2.1", True ),
- ( "=null/portage-2.1*", True ),]
+ ( "=null/portage-2.1*", True ),
+ ( "=foo/bar-123-1", True ),
+ ( "=foo/bar-123-1-r1", True ),
+ ]
for test in tests:
if test[1]:
pkgcache[mypkg]=None
return None
else:
- for x in myparts[:verPos]:
- if ververify(x):
- pkgcache[mypkg]=None
- return None
- #names can't have versiony looking parts
myval=("-".join(myparts[:verPos]),myparts[verPos],revision)
pkgcache[mypkg]=myval
return myval