[Reproducible-commits] [misc] 01/01: reports: review-bugs doesn't take a -w option any more, give it a file instead

Ximin Luo infinity0 at debian.org
Mon May 16 17:13: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 581b13bcba9ed15cc9ca94926a8b4831f8ec0be1
Author: Ximin Luo <infinity0 at debian.org>
Date:   Mon May 16 19:12:39 2016 +0200

    reports: review-bugs doesn't take a -w option any more, give it a file instead
---
 reports/README          | 2 +-
 reports/bin/review-bugs | 8 +++++---
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/reports/README b/reports/README
index afff0f9..f436d26 100644
--- a/reports/README
+++ b/reports/README
@@ -46,7 +46,7 @@ Process
    updated in the past 7 days, then use the `bts` tool to cache
    them, and finally display them using `mutt`.
 
-       $ bin/review-bugs -w 77	# for week 77 of the reports
+       $ bin/review-bugs
 
 3. Look at all uploads for the past week.
 
diff --git a/reports/bin/review-bugs b/reports/bin/review-bugs
index 2df73f6..522f1c6 100755
--- a/reports/bin/review-bugs
+++ b/reports/bin/review-bugs
@@ -4,12 +4,14 @@
 # Copyright © 2015 Lunar <lunar at debian.org>
 # Licensed under WTFPL — http://www.wtfpl.net/txt/copying/
 
-TOTAL="$(wc -l bugs | awk '{ print $1 }')"
+bugs=${1:-bugs}
 
-for bug in $(cat bugs); do
+TOTAL="$(wc -l "$bugs" | awk '{ print $1 }')"
+
+for bug in $(cat "$bugs"); do
 	bts cache --cache-mode=mbox "$bug" >/dev/null
 	echo "$bug"
 done | pv -t -e -p -l -s "$TOTAL"
-for bug in $(cat bugs); do
+for bug in $(cat "$bugs"); do
 	bts -o show --mbox "$bug"
 done

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