Re: [arch-projects] [dbscripts] [PATCH 4/8] Use `grep &>/dev/null` instead of `grep -q` when operating on piped stdin.
On Wed, 14 Mar 2018 00:11:12 -0400, Eli Schwartz wrote: > > On 03/13/2018 09:52 PM, Luke Shumaker wrote: > > From: Luke Shumaker> > > > `grep -q` may exit as soon as it finds a match; this is a good optimization > > for when the input is a file. However, if the input is
Re: [arch-projects] [dbscripts] [PATCH 8/8] devlist-mailer: Make LIST and FROM configurable
On Wed, 14 Mar 2018 00:11:40 -0400, Eli Schwartz wrote: > > On 03/13/2018 09:52 PM, Luke Shumaker wrote: > > From: Luke Shumaker> > TBH we don't even send out integrity check email anymore, do you? No, but we have a different cron-job that calls devlist-mailer -- Happy
Re: [arch-projects] [dbscripts] [PATCH 1/8] Fix quoting around variables, especially arrays.
On Wed, 14 Mar 2018 00:11:05 -0400, Eli Schwartz via arch-projects wrote: > > while read line; do > > - pkginfo=(${line}) > > + pkginfo=("${line}") > > That's completely wrong, just look at the next five lines. > > > pkgbase=${pkginfo[0]} > >
Re: [arch-projects] [dbscripts] [PATCH 4/8] Use `grep &>/dev/null` instead of `grep -q` when operating on piped stdin.
On Tue, 13 Mar 2018 21:52:01 -0400, Luke Shumaker wrote: > > From: Luke Shumaker> > `grep -q` may exit as soon as it finds a match; this is a good optimization > for when the input is a file. However, if the input is the output of > another program, then that other
Re: [arch-projects] [dbscripts] [PATCH 4/8] Use `grep &>/dev/null` instead of `grep -q` when operating on piped stdin.
On 03/13/2018 09:52 PM, Luke Shumaker wrote: > From: Luke Shumaker> > `grep -q` may exit as soon as it finds a match; this is a good optimization > for when the input is a file. However, if the input is the output of > another program, then that other program will receive
Re: [arch-projects] [dbscripts] [PATCH 8/8] devlist-mailer: Make LIST and FROM configurable
On 03/13/2018 09:52 PM, Luke Shumaker wrote: > From: Luke ShumakerTBH we don't even send out integrity check email anymore, do you? -- Eli Schwartz Bug Wrangler and Trusted User signature.asc Description: OpenPGP digital signature
Re: [arch-projects] [dbscripts] [PATCH 1/8] Fix quoting around variables, especially arrays.
On 03/13/2018 09:51 PM, Luke Shumaker wrote: > From: Luke Shumaker> > Other than pure quoting, this involved: > - swapping */@ for array access in a few places > - fiddling with printf in a pipeline > - replacing `$(echo ${array[@]})` with `${array[*]}` > -
Re: [arch-projects] [dbscripts] [PATCH 0/8] Backports from Parabola
On 03/13/2018 09:51 PM, Luke Shumaker wrote: > BTW, now that dbscripts is on GitHub, is that the preferred way of > submitting these? Or is this mailing list still best? It's been on github for quite some time, but I am okay with looking at things in either location. -- Eli Schwartz Bug
[arch-projects] [dbscripts] [PATCH 2/8] Use printf-formatters instead of string interpolation on msg, error, etc.
From: Luke Shumaker--- cron-jobs/ftpdir-cleanup | 8 cron-jobs/integrity-check | 2 +- cron-jobs/sourceballs | 8 db-functions | 6 +++--- db-move | 4 ++-- db-remove | 2 +- db-repo-add |
[arch-projects] [dbscripts] [PATCH 1/8] Fix quoting around variables, especially arrays.
From: Luke ShumakerOther than pure quoting, this involved: - swapping */@ for array access in a few places - fiddling with printf in a pipeline - replacing `$(echo ${array[@]})` with `${array[*]}` - replacing `echo $(...)` with `...` When searching for these
[arch-projects] [dbscripts] [PATCH 8/8] devlist-mailer: Make LIST and FROM configurable
From: Luke Shumaker--- config | 5 + cron-jobs/devlist-mailer | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/config b/config index d703e7b..fd79b6e 100644 --- a/config +++ b/config @@ -35,6 +35,11 @@
[arch-projects] [dbscripts] [PATCH 6/8] Consistently use "$(dirname "$(readlink -e "$0")")"
From: Luke ShumakerThis does correct handling of - executing a program by symlink - any weird characters in the full path - I'm sure there's another case I thought about when I originally did this. --- cron-jobs/ftpdir-cleanup | 4 ++-- cron-jobs/integrity-check | 2
[arch-projects] [dbscripts] [PATCH 4/8] Use `grep &>/dev/null` instead of `grep -q` when operating on piped stdin.
From: Luke Shumaker`grep -q` may exit as soon as it finds a match; this is a good optimization for when the input is a file. However, if the input is the output of another program, then that other program will receive SIGPIPE, and further writes will fail. When this
[arch-projects] [dbscripts] [PATCH 0/8] Backports from Parabola
From: Luke ShumakerThese are commits from Parabola's dbscripts that I think are upstreamable. No real theme to them, but because some of them are wide-sweeping (eg. clean up quoting), they are a good base layer to apply before backporting other changes. I've done my best
Re: [arch-projects] [dbscripts] [PATCH] db-functions: unify the repo-add/repo-remove caller
On Mon, 26 Feb 2018 17:59:09 -0500, Eli Schwartz via arch-projects wrote: > > Use less duplicated logic, opening the way to more elegantly change > the interface for the repo-add/repo-remove scripts which are themselves > symlinked together and mostly have the same interface. > > Signed-off-by: