From da1013f7067ca4272423802bccfe17f19a9d3e48 Mon Sep 17 00:00:00 2001 From: Paul Varner Date: Tue, 9 Oct 2012 16:32:01 -0500 Subject: [PATCH] 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. --- pym/gentoolkit/cpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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+)') -- 2.26.2