[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20230209-53-g2f50dae

Jon Turney jturney@sourceware.org
Fri Dec 29 16:11:36 GMT 2023




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)):



More information about the Cygwin-apps-cvs mailing list