[Reproducible-commits] [misc] 01/01: reports: newly-reproducible: autogenerate command list from helptext so we don't forget

Ximin Luo infinity0 at debian.org
Mon Aug 8 23:17:07 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 85dd63c1cecc1a8e39418307eeca7d281aab9831
Author: Ximin Luo <infinity0 at debian.org>
Date:   Tue Aug 9 01:16:50 2016 +0200

    reports: newly-reproducible: autogenerate command list from helptext so we don't forget
---
 reports/bin/newly-reproducible | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/reports/bin/newly-reproducible b/reports/bin/newly-reproducible
index bea9c5f..406dc9f 100755
--- a/reports/bin/newly-reproducible
+++ b/reports/bin/newly-reproducible
@@ -69,7 +69,8 @@ w   Open status page (from tests.reproducible-builds.org) in a web browser,
 Ctrl-C      Quit
 Enter       Go to next item or quit if last item
 """ % (nextname, prevname)
-        promptstr = "What do you want to do? [h]elp or [vcarxtue123.,] (status: %s) "
+        commands = "".join(filter(lambda x: x != " ", map(lambda x: x[0], filter(len, helptext.split("\n")))))[1:-2]
+        promptstr = "What do you want to do? [h]elp or [%s] (status: %%s) " % commands
         view = lambda: trace_call(["bin/history"] + full + suite + arch + [name])
         if autoview: view()
         while True:

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