diff options
author | tnn <tnn@pkgsrc.org> | 2009-03-06 13:05:21 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2009-03-06 13:05:21 +0000 |
commit | 83c08423d2c033a493bdc046044c7d9bff1411c4 (patch) | |
tree | 9adee06c4558b4300fb0263316a35a8d40cecc1d /pkgtools | |
parent | 2c965309dec027d8b7eb0444c93deab25d5eef04 (diff) | |
download | pkgsrc-83c08423d2c033a493bdc046044c7d9bff1411c4.tar.gz |
fix previous:
actually, if our /bin/sh has some bug related to set -e,
it's better to write the test with if-then-fi instead.
Diffstat (limited to 'pkgtools')
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date b/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date index ac506123077..d1f58431afe 100755 --- a/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date +++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date @@ -1,5 +1,5 @@ #!@SH@ -# $NetBSD: pkg-up-to-date,v 1.4 2009/03/06 13:00:29 tnn Exp $ +# $NetBSD: pkg-up-to-date,v 1.5 2009/03/06 13:05:21 tnn Exp $ # # Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. # All rights reserved. @@ -66,5 +66,7 @@ ${pkg_info} -qN ${pkg} | while read dep; do fi done [ $found = 1 ] - [ "${packages}/All/${dep}.tgz" -ot "${pkg}" ] + if [ "${packages}/All/${dep}.tgz" -nt "${pkg}" ]; then + exit 1 + fi done |