aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pkgcheck/checks/python.py2
-rw-r--r--testdata/repos/python/dev-python/python-mismatched-package-name/metadata.xml2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/pkgcheck/checks/python.py b/src/pkgcheck/checks/python.py
index 11ebc1e1..29b3db8e 100644
--- a/src/pkgcheck/checks/python.py
+++ b/src/pkgcheck/checks/python.py
@@ -25,7 +25,7 @@ GITHUB_ARCHIVE_RE = re.compile(r"^https://github\.com/[^/]+/[^/]+/archive/")
SNAPSHOT_RE = re.compile(r"[a-fA-F0-9]{40}\.tar\.gz$")
USE_FLAGS_PYTHON_USEDEP = re.compile(r"\[(.+,)?\$\{PYTHON_USEDEP\}(,.+)?\]$")
-PEP503_SYMBOL_NORMALIZE_RE = re.compile(r"[-_.]")
+PEP503_SYMBOL_NORMALIZE_RE = re.compile(r"[-_.]+")
def get_python_eclass(pkg):
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>