aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2023-02-13 08:02:09 +0100
committerArthur Zamarin <arthurzam@gentoo.org>2023-02-15 19:49:25 +0200
commit73879cf2a41096a80f203bb4b143393601411897 (patch)
treebc1e4e53ee489fc8dc0a5ff2f44e605a0c09cd5f /testdata/repos
parentUnusedInherits: fix false positives for eclasses defining special vars (diff)
downloadpkgcheck-73879cf2a41096a80f203bb4b143393601411897.tar.gz
pkgcheck-73879cf2a41096a80f203bb4b143393601411897.tar.bz2
pkgcheck-73879cf2a41096a80f203bb4b143393601411897.zip
python: Fix project normalization regex to replace runs of [._-]
Fix the regex used for project normalization to replace runs of consecutive `[._-]` symbols with a single hyphen, rather than every character individually. Adjust the test to verify that it handles these sequences correctly. Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'testdata/repos')
-rw-r--r--testdata/repos/python/dev-python/python-mismatched-package-name/metadata.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/testdata/repos/python/dev-python/python-mismatched-package-name/metadata.xml b/testdata/repos/python/dev-python/python-mismatched-package-name/metadata.xml
index 10320a70..1870d5ea 100644
--- a/testdata/repos/python/dev-python/python-mismatched-package-name/metadata.xml
+++ b/testdata/repos/python/dev-python/python-mismatched-package-name/metadata.xml
@@ -2,6 +2,6 @@
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
- <remote-id type="pypi">python.mismatched.package.name</remote-id>
+ <remote-id type="pypi">python.mismatched_package_-name</remote-id>
</upstream>
</pkgmetadata>