Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/cygwin-apps/calm.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2022-06-18 16:09:42 +0300
committerJon Turney <jon.turney@dronecode.org.uk>2022-06-18 16:09:42 +0300
commit3509dd0f85fd68e4bb70bbf6d08a9fa0384a6c57 (patch)
tree0a3707544e3543304af9f69dfd99ae0c6d21e508
parent39ee07ed3713329bde426fd9efa53f1bed5df89e (diff)
Show all install packages for a source package
Show the union of install packages over all architecture in the source package summary page.
-rwxr-xr-xcalm/pkg2html.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 565e515..04e0836 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -238,7 +238,12 @@ def update_package_listings(args, packages):
if po.kind == package.Kind.source:
es = p
- print('<span class="detail">install package(s)</span>: %s<br><br>' % ', '.join([linkify_package(p) for p in sorted(po.is_used_by)]), file=f)
+
+ install_packages = set()
+ for arch in pos:
+ install_packages.update(pos[arch].is_used_by)
+ print('<span class="detail">install package(s)</span>: %s<br><br>' % ', '.join([linkify_package(p) for p in sorted(install_packages)]), file=f)
+
homepage = po.version_hints[po.best_version].get('homepage', None)
if homepage:
print('<span class="detail">homepage</span>: <a href="%s">%s</a><br><br>' % (homepage, homepage), file=f)