From: Paul Varner Date: Tue, 9 Oct 2012 21:32:01 +0000 (-0500) Subject: Modify _pkg_re to work with EAPI 4-python which is in use by Funtoo. X-Git-Tag: gentoolkit-0.3.0.7~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=da1013f7067ca4272423802bccfe17f19a9d3e48;p=gentoolkit.git Modify _pkg_re to work with EAPI 4-python which is in use by Funtoo. Testing on a Gentoo system showed no adverse affects with the change. --- diff --git a/pym/gentoolkit/cpv.py b/pym/gentoolkit/cpv.py index 8d81c93..97fc76b 100644 --- a/pym/gentoolkit/cpv.py +++ b/pym/gentoolkit/cpv.py @@ -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+.+ isvalid_rev_re = re.compile(r'(\d+|0\d+\.\d+)')