Your message dated Tue, 03 May 2016 09:56:24 +0800
with message-id <[email protected]>
and subject line Re: Bug#823194: grep-excuses: return failure on network errors
has caused the Debian Bug report #823194,
regarding grep-excuses: return failure on network errors
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
823194: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=823194
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: devscripts
Severity: wishlist
User: [email protected]
Usertags: grep-excuses
I'm running grep-excuses from cron and diffing the results. When
network is down, grep-excuses can't access anything and I end up
diffing the usual results with an error message because the error is
printed but the command doesn't return an error.
I would like grep-excuses to return failure when there is a failure.
These are the error messages I get when there is no network:
grep-excuses: fetch https://udd.debian.org/cgi-bin/autoremovals.cgi failed (4 )
gzip: stdin: unexpected end of file
grep-excuses: read/zcat failed:
--
bye,
pabs
https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
On Mon, 2016-05-02 at 19:32 -0400, James McCoy wrote:
> In my testing, it does indeed exit with a non-zero exit code (1 to be
> exact). I'm therefore not sure why you're not seeing such a failure.
> That particular die statement has been in the code since it was first
> added to devscripts in 2004.
Bah, I forgot I was piping the output to sed, which returns success.
Sorry for the noise, I guess I'll use bash and set pipefail.
--
bye,
pabs
https://wiki.debian.org/PaulWise
signature.asc
Description: This is a digitally signed message part
--- End Message ---
_______________________________________________
devscripts-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/devscripts-devel