summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authortnn <tnn>2009-03-06 13:00:29 +0000
committertnn <tnn>2009-03-06 13:00:29 +0000
commitd4b72154f724d423960e30862d76dcf913bcdb14 (patch)
treecb8e697c159cdd127832d4136e250f1e5de89a8e /pkgtools
parent8464575ef844193e0fbf5de48b16f2ed604531c3 (diff)
downloadpkgsrc-d4b72154f724d423960e30862d76dcf913bcdb14.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')
-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