[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-2-gc7baf4a

Jon TURNEY via Cygwin-apps-cvs <[email protected]>
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=c7baf4a1eeb46e96a1b72dc9a6e483a7621d2996

commit c7baf4a1eeb46e96a1b72dc9a6e483a7621d2996
Author: Jon Turney <[email protected]>
Date:   Wed Oct 13 12:02:15 2021 +0100

    Link back from package contents to package summary


Diff:
---
 calm/pkg2html.py | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 5113d36..30b5211 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -457,20 +457,20 @@ def write_arch_listing(args, packages, arch):
 
                     with utils.open_amifc(listing) as f:
                         bv = packages[p].best_version
-                        header = p + ": " + sdesc(packages[p], bv)
+                        desc = sdesc(packages[p], bv)
 
                         if fver.endswith('-src'):
-                            header = header + " (source)"
+                            desc = desc + " (source)"
 
                         print(textwrap.dedent('''\
                                                  <!DOCTYPE html>
                                                  <html>
                                                  <head>
-                                                 <title>%s</title>
+                                                 <title>%s: %s</title>
                                                  </head>
                                                  <body>
-                                                 <h1>%s</h1>
-                                                 <pre>''' % (header, header)), file=f)
+                                                 <h1><a href="../../summary/%s.html">%s</a>: %s</h1>
+                                                 <pre>''' % (p, desc, p, p, desc)), file=f)
 
                         tf = os.path.join(args.rel_area, to.path, to.fn)
                         if not os.path.exists(tf):
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.