Add repology link to package summary
authorJon Turney <jon.turney@dronecode.org.uk>
Wed, 4 Jun 2025 13:09:24 +0000 (14:09 +0100)
committerJon Turney <jon.turney@dronecode.org.uk>
Fri, 6 Jun 2025 12:42:25 +0000 (13:42 +0100)
calm/calm.py
calm/pkg2html.py

index 600a074cfa3a8b0a43397b02819cf8c7c4dffe60..c8c8a7782d4cc7ce967382b373cfd32f57750007 100755 (executable)
@@ -587,10 +587,6 @@ def is_passphrase_cached(args):
 #
 #
 def do_output(args, state):
-    # update packages listings
-    # XXX: perhaps we need a --[no]listing command line option to disable this from being run?
-    pkg2html.update_package_listings(args, state.packages)
-
     update_json = False
 
     # for each arch
@@ -693,6 +689,10 @@ def do_output(args, state):
         repology.annotate_packages(args, state.packages)
         reports.do_reports(args, state.packages)
 
+    # update packages listings
+    # XXX: perhaps we need a --[no]listing command line option to disable this from being run?
+    pkg2html.update_package_listings(args, state.packages)
+
     # if we are daemonized, allow force regeneration of static content in htdocs
     # initially (in case the generation code has changed), but update that
     # static content only as needed on subsequent loops
index a23c6624763bd9dd60b8e69457c94beded52d59e..926281e64466eb38dc680c245e1b3e5002be643b 100755 (executable)
@@ -332,6 +332,11 @@ def update_package_listings(args, packages):
                                 repo_browse_url = '/cgit/cygwin-packages/%s/' % pn
                                 details_table['packaging repository'] = '<a href="%s">%s.git</a>' % (repo_browse_url, pn)
 
+                        repology_pn = getattr(po, 'repology_project_name', None)
+                        if repology_pn:
+                            upstream_version = getattr(po, 'upstream_version', '')
+                            details_table['repology info'] = '<a href="https://repology.org/project/%s/information">%s</a> (%s)' % (repology_pn, repology_pn, upstream_version)
+
                     if po.kind == package.Kind.binary:
                         doc_path = os.path.join(args.htdocs, 'doc', pn)
                         if os.path.exists(doc_path):
This page took 0.029784 seconds and 5 git commands to generate.