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

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=8e945375168eb6bb93e0e6cb1f437dacff9ff088

commit 8e945375168eb6bb93e0e6cb1f437dacff9ff088
Author: Jon Turney <[email protected]>
Date:   Wed Nov 3 13:05:50 2021 +0000

    Use an absolute URL for link from package contents to summary
    
    This makes the link also resolve correctly when the listing file is
    served via the package-cat cgi script (which has a different base url)


Diff:
---
 calm/pkg2html.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 30b5211..b43ed71 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -469,7 +469,7 @@ def write_arch_listing(args, packages, arch):
                                                  <title>%s: %s</title>
                                                  </head>
                                                  <body>
-                                                 <h1><a href="../../summary/%s.html">%s</a>: %s</h1>
+                                                 <h1><a href="/packages/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)
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.