public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
From: Jon TURNEY <jturney@sourceware.org>
To: cygwin-apps-cvs@sourceware.org
Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. 20210626-15-g3e8e10f
Date: Thu,  3 Feb 2022 13:34:59 +0000 (GMT)	[thread overview]
Message-ID: <20220203133459.72FE73858D37@sourceware.org> (raw)




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

commit 3e8e10f195747de3bff5d32bc6b2d1cd67fb9b6c
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon Jan 31 18:59:52 2022 +0000

    Include upstream version in 'unmaintained packages' report
    
    Fetch the upstream version from repology, and in include it in the
    'unmaintained packages' report.
    
    v2:
    Annotate packages in daemonized mode as well

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

commit e4b7bf3c372a06f994413200e00b49a9ae74f99c
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Mon Jan 31 15:36:57 2022 +0000

    Add 'deprecated shared libraries' report

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

commit 2677eb4380ec544335aec40b71d12d723e76195d
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Sat Jan 29 18:11:46 2022 +0000

    Add 'unmaintained packages' report


Diff:
---
 calm/reports.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/calm/reports.py b/calm/reports.py
index bf77f3f..2cd2308 100644
--- a/calm/reports.py
+++ b/calm/reports.py
@@ -41,7 +41,7 @@ def template(title, body, f):
     <!DOCTYPE html>
     <html>
     <head>
-    <link rel="stylesheet" type="text/css" href="/static/builds/style.css"/>
+    <link rel="stylesheet" type="text/css" href="/style.css"/>
     <title>{0}</title>
     </head>
     <body>
@@ -56,8 +56,8 @@ def template(title, body, f):
     </html>'''), file=f)
 
 
-def linkify(pn):
-    return '<a href="/packages/summary/{0}-src.html">{0}</a>'.format(pn)
+def linkify(pn, po):
+    return '<a href="/packages/summary/{0}.html">{1}</a>'.format(pn, po.orig_name)
 
 
 #
@@ -95,6 +95,7 @@ def unmaintained(args, packages, reportsdir):
             build_rdepends.update(packages[arch][subp].build_rdepends)
 
         up = types.SimpleNamespace()
+        up.pn = p
         up.po = po
         up.v = v
         up.upstream_v = getattr(po, 'upstream_version', 'unknown')
@@ -116,9 +117,8 @@ def unmaintained(args, packages, reportsdir):
     print('<tr><th>last updated</th><th>package</th><th>version</th><th>upstream version</th><th>rdepends</th><th>build_rdepends</th></tr>', file=body)
 
     for up in sorted(um_list, key=lambda i: (i.rdepends + i.build_rdepends, i.ts), reverse=True):
-        po = up.po
         print('<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>' %
-              (pkg2html.tsformat(up.ts), linkify(po.orig_name), up.v, up.upstream_v, up.rdepends, up.build_rdepends), file=body)
+              (pkg2html.tsformat(up.ts), linkify(up.pn, up.po), up.v, up.upstream_v, up.rdepends, up.build_rdepends), file=body)
 
     print('</table>', file=body)
 
@@ -175,7 +175,7 @@ def deprecated(args, packages, reportsdir):
     for depp in sorted(dep_list, key=lambda i: (i.rdepends, i.ts), reverse=True):
         po = depp.po
         print('<tr><td>%s</td><td>%s</td><td>%s</td></tr>' %
-              (linkify(depp.pn), depp.v, depp.rdepends), file=body)
+              (linkify(depp.pn, depp.po), depp.v, depp.rdepends), file=body)
 
     print('</table>', file=body)
 



                 reply	other threads:[~2022-02-03 13:34 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220203133459.72FE73858D37@sourceware.org \
    --to=jturney@sourceware.org \
    --cc=cygwin-apps-cvs@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).