diff options
author | joerg <joerg@pkgsrc.org> | 2006-07-20 13:31:08 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2006-07-20 13:31:08 +0000 |
commit | eeaca9963061f5de52cd5d8a3b48425f5f6b7b0a (patch) | |
tree | 3b7840407fc9039b10da83871bc45b8e20c74f21 /mk | |
parent | 159d2f813130f88c789e6d3e8b1bb5a4c8ce012e (diff) | |
download | pkgsrc-eeaca9963061f5de52cd5d8a3b48425f5f6b7b0a.tar.gz |
verify_file() returns a non-zero result whenever the distfile does not
currently exist. This triggers a bug in the Bourne shell of at least
DragonFly and Irix, when set -e is also active. Remove set -e to avoid
this. Discussed with jlam@, shown by DragonFly bulk builds, complains on
DragonFly's user list and PR 34036.
A test case for this shell bug is, which should return 0:
set -e
testf () {
test -f /nonexistent || return 1
return 0
}
if testf; then
exit 1
fi
exit 0
Diffstat (limited to 'mk')
-rwxr-xr-x | mk/fetch/fetch | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mk/fetch/fetch b/mk/fetch/fetch index 05ac185a913..4a165d40969 100755 --- a/mk/fetch/fetch +++ b/mk/fetch/fetch @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: fetch,v 1.4 2006/07/19 15:13:40 jlam Exp $ +# $NetBSD: fetch,v 1.5 2006/07/20 13:31:08 joerg Exp $ # # Copyright (c) 2006 The NetBSD Foundation, Inc. # All rights reserved. @@ -104,8 +104,6 @@ # ###################################################################### -set -e # exit on errors - : ${PKGSRCDIR:=/usr/pkgsrc} : ${CHECKSUM:=${PKGSRCDIR}/mk/checksum/checksum} : ${CP:=cp} |