maven: Discard templated origin URLs

This commit is contained in:
Valentin Lorentz 2023-01-30 12:09:02 +01:00 committed by vlorentz
parent 36179044ad
commit 62b0835193

View file

@ -303,6 +303,13 @@ class MavenLister(Lister[MavenListerState, RepoPage]):
if not url:
return None
if "${" in url:
# A handful of URLs contain templated strings (21, as of 2023-01-30)
# We could implement support for
# https://maven.apache.org/guides/introduction/introduction-to-the-pom.html#Project_Interpolation_and_Variables
# but most of them seem to use variables not defined in this spec.
return None
assert visit_type is not None
assert self.lister_obj.id is not None
return ListedOrigin(