[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20181020-12-gcc7255e

jturney-9JcytcrH/[email protected]
Newsgroups gmane.os.cygwin.cvs.apps
Message-ID <[email protected]>


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

commit cc7255e5702e94a24ad868805f73d59bbdff0d63
Author: Jon Turney <[email protected]>
Date:   Sat May 25 13:50:29 2019 +0100

    Don't list previous maintainer in summary page if orphaned


Diff:
---
 calm/pkg2html.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 32a519f..a57b836 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -187,7 +187,11 @@ def update_package_listings(args, packages):
                         print('<span class="detail">binaries</span>: %s<br><br>' % ', '.join([linkify_package(p) for p in sorted(arch_packages[p].is_used_by)]), file=f)
                         es = p
 
-                    print('<span class="detail">maintainer(s)</span>: %s ' % ', '.join(sorted(pkg_maintainers[es])), file=f)
+                    if 'ORPHANED' in pkg_maintainers[es]:
+                        m = 'ORPHANED'
+                    else:
+                        m = ', '.join(sorted(pkg_maintainers[es]))
+                    print('<span class="detail">maintainer(s)</span>: %s ' % m, file=f)
                     print(textwrap.dedent('''\
                     <span class="smaller">(Use <a href="https://cygwin.com/lists.html#cygwin">the mailing list</a> to report bugs or ask questions.
                     <a href="https://cygwin.com/problems.html#personal-email">Do not contact the maintainer(s) directly</a>.)</span>'''), file=f)
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.