summaryrefslogtreecommitdiff
path: root/pkgtools/pbulk
diff options
context:
space:
mode:
authortnn <tnn@pkgsrc.org>2009-03-06 13:00:29 +0000
committertnn <tnn@pkgsrc.org>2009-03-06 13:00:29 +0000
commit2c965309dec027d8b7eb0444c93deab25d5eef04 (patch)
treecb8e697c159cdd127832d4136e250f1e5de89a8e /pkgtools/pbulk
parent235a04c565e30e33ce029c5f4626084bc0636895 (diff)
downloadpkgsrc-2c965309dec027d8b7eb0444c93deab25d5eef04.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-xpkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date4
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