aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBrian Harring <ferringb@gmail.com>2023-12-27 10:35:17 -0800
committerArthur Zamarin <arthurzam@gentoo.org>2023-12-28 07:27:13 +0200
commitc82a051e9031149eb51a947c951c145b3c60eab7 (patch)
treed6957d575374ff49629d654ad4f066f451948171 /tests
parentfix: add atom test for 'foo/bar-11-r3' (diff)
downloadpkgcore-c82a051e9031149eb51a947c951c145b3c60eab7.tar.gz
pkgcore-c82a051e9031149eb51a947c951c145b3c60eab7.tar.bz2
pkgcore-c82a051e9031149eb51a947c951c145b3c60eab7.zip
fix: tweak CPV parsing rules to match PMS.
Bug #421 captures this; pkgcore was allowing version components as the package name if it was suffixed by a revision; the fix for that incorrectly limited a package name that has a trailing revision, but *no version syntax* in the name. This commit just refactors the revision check to also force a check for a leading version if revision-like is found. Resolves: https://github.com/pkgcore/pkgcore/issues/421 Signed-off-by: Brian Harring <ferringb@gmail.com> Closes: https://github.com/pkgcore/pkgcore/pull/422 Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'tests')
-rw-r--r--tests/ebuild/test_cpv.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ebuild/test_cpv.py b/tests/ebuild/test_cpv.py
index 1a778a936..ae7d80260 100644
--- a/tests/ebuild/test_cpv.py
+++ b/tests/ebuild/test_cpv.py
@@ -64,6 +64,7 @@ class TestCPV:
"bah/f-100dpi",
"dev-util/diffball-blah-monkeys",
"virtual/7z",
+ "x11-drivers/xf86-video-r128",
)
good_vers = ("1", "2.3.4", "2.3.4a", "02.3", "2.03", "3d", "3D")