[Reproducible-commits] [misc] 02/02: reports: newly-reproducible: add a command to open in a browser
Ximin Luo
infinity0 at debian.org
Mon Aug 8 23:05:09 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 5358a497aad8ff72acd309baf11656a233e7c8db
Author: Ximin Luo <infinity0 at debian.org>
Date: Tue Aug 9 01:05:02 2016 +0200
reports: newly-reproducible: add a command to open in a browser
---
reports/bin/newly-reproducible | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/reports/bin/newly-reproducible b/reports/bin/newly-reproducible
index e144544..bea9c5f 100755
--- a/reports/bin/newly-reproducible
+++ b/reports/bin/newly-reproducible
@@ -59,6 +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.
+ If no suite is selected as a filter, uses "unstable".
+ If no arch is selected as a filter, uses "amd64".
+
. Go to next item (%s)
, Go to prev item (%s)
Ctrl-C Quit
@@ -104,6 +109,12 @@ Enter Go to next item or quit if last item
selected = dict((k[0], "-a"+k[1:]) for k in ["1amd64", "2i386", "3armhf"])[c]
arch = [selected] if arch != [selected] else []
if autoview: view()
+ elif c == "w":
+ browser = os.getenv("BROWSER", "x-www-browser")
+ w_suite = suite[0][2:] if suite else "unstable"
+ 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)])
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