Skip to content

Commit d488ab5

Browse files
aKlimauclaude
andcommitted
Fixed hardcoded pattern to allow v4 urls
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 21ce6b9 commit d488ab5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pulp_python/app/management/commands/repair-python-metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def href_prn_list_handler(value):
5959
"""Common list parsing for a string of hrefs/prns."""
6060
r = re.compile(
6161
rf"""
62-
(?:{settings.API_ROOT}(?:[-_a-zA-Z0-9]+/)?api/v3/repositories/python/python/[-a-f0-9]+/)
62+
(?:{settings.API_ROOT}(?:[-_a-zA-Z0-9]+/)?api/v[34]/repositories/python/python/[-a-f0-9]+/)
6363
|(?:prn:python\.pythonrepository:[-a-f0-9]+)
6464
""",
6565
re.VERBOSE,

0 commit comments

Comments
 (0)