Re: portsnap5 problem, portsnap error handling

From: Colin Percival <cperciva_at_freebsd.org>
Date: Tue, 04 Oct 2011 14:24:48 -0700
On 10/04/11 14:08, Jilles Tjoelker wrote:
> The important part is the error from [. Because the check is for
> inequality, in case of a [ syntax error the "equal" path is taken and
> the script continues as if everything is fine.
> 
> The script arrives there because of a missing backslash so that the
> fetch(1) command's exit status is not checked.
> 
> The below patch should fix this fairly simply. [...]

Aha!  I don't know how many times I've looked at that code and thought "I
don't understand, why isn't it returning from this function?"  Please feel
free to commit this fix.

For the benefit of the list: It looks like there was a short period this
morning when several portsnap mirrors were out of sync due to the mirroring
cron jobs running into a network outage somewhere around portsnap-master.
Everything should be back to normal now.

-- 
Colin Percival
Security Officer, FreeBSD | freebsd.org | The power to serve
Founder / author, Tarsnap | tarsnap.com | Online backups for the truly paranoid
Received on Tue Oct 04 2011 - 22:43:51 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:18 UTC