diff options
author | tnn <tnn@pkgsrc.org> | 2009-03-06 13:00:29 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2009-03-06 13:00:29 +0000 |
commit | cff92513a122bc16ea3041315ad7b3bd2ac834ea (patch) | |
tree | cb8e697c159cdd127832d4136e250f1e5de89a8e /pkgtools/pbulk | |
parent | 6b5e41ce4cb7a0947c49a9c3ddde3f0c7d75cc5c (diff) | |
download | pkgsrc-cff92513a122bc16ea3041315ad7b3bd2ac834ea.tar.gz |
Invert logic of the package timestamp check, as at least ksh and bash
terminate the shell due to "set -e" when the [ ... ] part is false.
This behaviour seems correct to me, but I can't explain why this code
doesn't fail with our /bin/sh.
Diffstat (limited to 'pkgtools/pbulk')
-rwxr-xr-x | pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date | 4 |
1 files changed, 2 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 31c90c8906f..ac506123077 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.3 2008/09/16 18:21:30 joerg Exp $ +# $NetBSD: pkg-up-to-date,v 1.4 2009/03/06 13:00:29 tnn Exp $ # # Copyright (c) 2007 Joerg Sonnenberger <joerg@NetBSD.org>. # All rights reserved. @@ -66,5 +66,5 @@ ${pkg_info} -qN ${pkg} | while read dep; do fi done [ $found = 1 ] - [ "${packages}/All/${dep}.tgz" -nt "${pkg}" ] && exit 1 + [ "${packages}/All/${dep}.tgz" -ot "${pkg}" ] done |