[misc] 01/01: reports: Add 'l' to newly-reproducible to open online changelog

Ximin Luo infinity0 at debian.org
Mon Oct 3 14:21:00 UTC 2016


This is an automated email from the git hooks/post-receive script.

infinity0 pushed a commit to branch master
in repository misc.

commit f400bf60076e7a5981df9b3783c3a529c5bda39d
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon Oct 3 16:18:32 2016 +0200

    reports: Add 'l' to newly-reproducible to open online changelog
    
    Useful in case the local one didn't get downloaded
---
 reports/bin/newly-reproducible | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/reports/bin/newly-reproducible b/reports/bin/newly-reproducible
index fa72f22..213f5b8 100755
--- a/reports/bin/newly-reproducible
+++ b/reports/bin/newly-reproducible
@@ -59,8 +59,11 @@ e   Filter/unfilter "view build logs" to suite experimental
 2   Filter/unfilter "view build logs" to arch i386
 3   Filter/unfilter "view build logs" to arch armhf
 
-w   Open status page (from tests.reproducible-builds.org) in a web browser,
-    the BROWSER environment variable if set or else x-www-browser.
+w   Open status page (from tests.reproducible-builds.org) in a web browser.
+l   Open changelogs page (from changelogs.debian.net) in a web browser.
+    Useful if 'c' doesn't work; HTTP-only however.
+
+    For the above we use the BROWSER env var if set, or else x-www-browser.
     If no suite is selected as a filter, uses "unstable".
     If no arch is selected as a filter, uses "amd64".
 
@@ -116,6 +119,10 @@ Enter       Go to next item or quit if last item
                 w_arch = arch[0][2:] if arch else "amd64"
                 url_fmt = "https://tests.reproducible-builds.org/debian/rb-pkg/%s/%s/%s.html"
                 trace_call([browser, url_fmt % (w_suite, w_arch, name)])
+            elif c == "l":
+                browser = os.getenv("BROWSER", "x-www-browser")
+                url_fmt = "http://changelogs.debian.net/%s"
+                trace_call([browser, url_fmt % (name)])
             else:
                 print(helptext)
         return 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git



More information about the Reproducible-commits mailing list