Simplify the _pkg regex and fix validation for some cases by using the
authorZac Medico <zmedico@gentoo.org>
Mon, 14 Sep 2009 05:46:21 +0000 (05:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Mon, 14 Sep 2009 05:46:21 +0000 (05:46 -0000)
commit16870d2ca3c417bd2ce75d1005ce3c1a34cd64aa
treec2201323be9ae33e9cb8ada42db80bc226f3327b
parent25d23593b4fa78f7e9694498ef71bca13acdb061
Simplify the _pkg regex and fix validation for some cases by using the
_version regex to match unwanted version-like components which can not
be at the end of a _pkg match. For example
isvalidatom('app-doc/php-docs-20071125-r2') now correctly returns False.

svn path=/main/trunk/; revision=14251
pym/portage/dep.py
pym/portage/tests/dep/test_isvalidatom.py