Skip to content

Commit

Permalink
Add a repology link to each package
Browse files Browse the repository at this point in the history
There is no way to override the mapping and no version info,
we just re-use the mapping repology has for our packages.
But it's a start.
  • Loading branch information
lazka committed Jan 12, 2024
1 parent eab5376 commit d401a04
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/appstate.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,13 @@ def external_infos(self) -> Sequence[tuple[ExtId, ExtInfo]]:
ext.append((ext_id, infos[realname]))
break

# XXX: let repology do the mapping for us
repology_repo = "msys2_msys2" if self._package.repo == "msys" else "msys2_mingw"
ext.append((
ExtId("repology", "Repology", True),
ExtInfo(self.realname, "", 0,
f"https://repology.org/tools/project-by?repo={quote(repology_repo)}&name_type=srcname&target_page=project_versions&name={quote(self.name)}", {})))

return sorted(ext)

@property
Expand Down

2 comments on commit d401a04

@ognevny
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

by the way repology only has mingw32 and mingw64 repos. how can we contact them to add ucrt64?

@lazka
Copy link
Member Author

@lazka lazka commented on d401a04 Jan 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could ask to replace things, yeah.

Please sign in to comment.