fetch(1): more fixes for soft failure handling
Fix logic error introduced in my commit
bf599c03f0
Also, authorization errors should not be considered as soft failures.
This commit is contained in:
parent
80fc25025f
commit
85f15576b4
@ -1200,17 +1200,18 @@ main(int argc, char *argv[])
|
||||
if (e) {
|
||||
r = 1;
|
||||
if ((fetchLastErrCode
|
||||
&& fetchLastErrCode != FETCH_AUTH
|
||||
&& fetchLastErrCode != FETCH_UNAVAIL
|
||||
&& fetchLastErrCode != FETCH_MOVED
|
||||
&& fetchLastErrCode != FETCH_URL
|
||||
&& fetchLastErrCode != FETCH_RESOLV
|
||||
&& fetchLastErrCode != FETCH_UNKNOWN
|
||||
&& (is_http
|
||||
&& fetchLastErrCode != FETCH_PROTO
|
||||
&& (!is_http || (
|
||||
fetchLastErrCode != FETCH_PROTO
|
||||
&& fetchLastErrCode != FETCH_SERVER
|
||||
&& fetchLastErrCode != FETCH_TEMP
|
||||
&& fetchLastErrCode != FETCH_TIMEOUT
|
||||
))) {
|
||||
)))) {
|
||||
if (w_secs && v_level)
|
||||
fprintf(stderr, "Waiting %ld seconds "
|
||||
"before retrying\n", w_secs);
|
||||
|
Loading…
Reference in New Issue
Block a user