[calm - Cygwin server-side packaging maintenance script] branch master, updated. 20190530-54-g4d6baa5

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=4d6baa589f3466f6bff5fa537ac99c1f48d77130

commit 4d6baa589f3466f6bff5fa537ac99c1f48d77130
Author: Jon Turney <[email protected]>
Date:   Tue Aug 13 11:48:59 2019 +0100

    Stop bodging names starting with '_' in mkgitoliteconf
    
    Now that we've patched gitolite to allow reponames starting with an
    underscore, we can generate a gitolite configuration without mangling
    those reponames.

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

commit ef11011554ec6ed7dc2740d5ea370daa9390b633
Author: Jon Turney <[email protected]>
Date:   Sat Aug 10 13:52:55 2019 +0100

    Add a link from package summary page to browse packaging git repo


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

diff --git a/calm/mkgitoliteconf.py b/calm/mkgitoliteconf.py
index f5560af..761979d 100755
--- a/calm/mkgitoliteconf.py
+++ b/calm/mkgitoliteconf.py
@@ -72,8 +72,6 @@ def do_main(args):
     for p in sorted(pkgs):
         users = ' '.join(map(transform_username, pkgs[p]))
         owner = pkgs[p][0]  # first named maintainer
-        if p.startswith('_'):
-            p = p[1:]
 
         print("repo git/cygwin-packages/%s" % (p))
         print("C  = %s" % (users))
diff --git a/calm/pkg2html.py b/calm/pkg2html.py
index 2c14933..21256ae 100755
--- a/calm/pkg2html.py
+++ b/calm/pkg2html.py
@@ -280,6 +280,12 @@ def update_package_listings(args, packages):
                             print('</table><br>', file=f)
                     print('</ul>', file=f)
 
+                    if po.kind == package.Kind.source:
+                        repo = 'git/cygwin-packages/%s.git' % pn
+                        if os.path.exists('/' + repo):
+                            repo_browse_url = '/git-cygwin-packages/?p=%s' % repo
+                            print('<span class="detail">packaging repository</span>: <a href="%s">%s.git</a>' % (repo_browse_url, pn), file=f)
+
                     print(textwrap.dedent('''\
                     </div>
                     </body>
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.