public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-2-gc7baf4a
@ 2021-10-13 12:41 Jon TURNEY
  0 siblings, 0 replies; only message in thread
From: Jon TURNEY @ 2021-10-13 12:41 UTC (permalink / raw)
  To: cygwin-apps-cvs




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

commit c7baf4a1eeb46e96a1b72dc9a6e483a7621d2996
Author: Jon Turney <jon.turney@dronecode.org.uk>
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):



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-10-13 12:41 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-13 12:41 [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-2-gc7baf4a Jon TURNEY

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).