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. 20230209-53-g2f50dae
Date: Fri, 29 Dec 2023 16:11:36 +0000 (GMT)	[thread overview]
Message-ID: <20231229161136.E90E63858D33@sourceware.org> (raw)




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

commit 2f50daec7162c918b480f90c5973b1f600956f36
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Fri Dec 29 14:31:51 2023 +0000

    Add a tool for identifiying packages without packaging repos

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

commit 3cd885722e8914b63d4752427df9943b9936a0e5
Author: Jon Turney <jon.turney@dronecode.org.uk>
Date:   Wed Dec 20 17:35:33 2023 +0000

    Make report tables sortable


Diff:
---
 calm/missing-repos.py | 12 ++++++++++++
 calm/reports.py       |  7 ++++---
 2 files changed, 16 insertions(+), 3 deletions(-)

diff --git a/calm/missing-repos.py b/calm/missing-repos.py
new file mode 100644
index 0000000..af6407e
--- /dev/null
+++ b/calm/missing-repos.py
@@ -0,0 +1,12 @@
+import os
+
+from . import common_constants
+from . import maintainers
+
+
+pl = maintainers.pkg_list(common_constants.PKGMAINT)
+
+for p in pl.values():
+    repo = '/git/cygwin-packages/%s.git' % p
+    if not os.path.exists(repo):
+        print('package %s, maintainer(s) %s' % (p, p.maintainers()))
diff --git a/calm/reports.py b/calm/reports.py
index d56eb89..a043cc4 100644
--- a/calm/reports.py
+++ b/calm/reports.py
@@ -43,6 +43,7 @@ def template(title, body, f):
     <html>
     <head>
     <link rel="stylesheet" type="text/css" href="/style.css"/>
+    <script src="sorttable.js"></script>
     <title>{0}</title>
     </head>
     <body>
@@ -125,7 +126,7 @@ def unmaintained(args, packages, reportlist):
     body = io.StringIO()
     print('<p>Packages without a maintainer.</p>', file=body)
 
-    print('<table class="grid">', file=body)
+    print('<table class="grid sortable">', file=body)
     print('<tr><th>last updated</th><th>package</th><th>version</th><th>upstream version</th><th>rdepends</th><th>build_rdepends</th><th>importance</th></tr>', file=body)
 
     for up in sorted(um_list, key=lambda i: (-i.importance, i.rdepends + i.build_rdepends, not i.unchanged, i.ts), reverse=True):
@@ -183,7 +184,7 @@ def deprecated(args, packages, reportlist):
     <p>Packages for old soversions. (The corresponding source package produces a
     newer soversion, or has stopped producing this solib).</p>'''), file=body)
 
-    print('<table class="grid">', file=body)
+    print('<table class="grid sortable">', file=body)
     print('<tr><th>package</th><th>version</th><th>timestamp</th><th>rdepends</th></tr>', file=body)
 
     for depp in sorted(dep_list, key=lambda i: (i.rdepends, i.ts), reverse=True):
@@ -244,7 +245,7 @@ def provides_rebuild(args, packages, fn, provide_package, reportlist):
     body = io.StringIO()
     print(' <p>Packages whose latest version depends on a version provides: other than %s.</p>' % pp_provide, file=body)
 
-    print('<table class="grid">', file=body)
+    print('<table class="grid sortable">', file=body)
     print('<tr><th>package</th><th>srcpackage</th><th>version</th><th>depends</th></tr>', file=body)
 
     for pr in sorted(pr_list, key=lambda i: (i.depends, i.pn)):


                 reply	other threads:[~2023-12-29 16:11 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=20231229161136.E90E63858D33@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).