maven: Discard templated origin URLs
This commit is contained in:
parent
36179044ad
commit
62b0835193
1 changed files with 7 additions and 0 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue