Modify _pkg_re to work with EAPI 4-python which is in use by Funtoo.
authorPaul Varner <fuzzyray@gentoo.org>
Tue, 9 Oct 2012 21:32:01 +0000 (16:32 -0500)
committerPaul Varner <fuzzyray@gentoo.org>
Tue, 9 Oct 2012 21:34:14 +0000 (16:34 -0500)
Testing on a Gentoo system showed no adverse affects with the change.

pym/gentoolkit/cpv.py

index 8d81c9315d7c11d176019ae9c8a131e8d0efade5..97fc76b8de3978e93e7b39603f0f053a6669576c 100644 (file)
@@ -33,7 +33,7 @@ from gentoolkit import errors
 isvalid_version_re = re.compile("^(?:cvs\\.)?(?:\\d+)(?:\\.\\d+)*[a-z]?"
        "(?:_(p(?:re)?|beta|alpha|rc)\\d*)*$")
 isvalid_cat_re = re.compile("^(?:[a-zA-Z0-9][-a-zA-Z0-9+._]*(?:/(?!$))?)+$")
-_pkg_re = re.compile("^[a-zA-Z0-9+_]+$")
+_pkg_re = re.compile("^[a-zA-Z0-9+._]+$")
 # Prefix specific revision is of the form -r0<digit>+.<digit>+
 isvalid_rev_re = re.compile(r'(\d+|0\d+\.\d+)')