From cff92513a122bc16ea3041315ad7b3bd2ac834ea Mon Sep 17 00:00:00 2001 From: tnn Date: Fri, 6 Mar 2009 13:00:29 +0000 Subject: 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. --- pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkgtools/pbulk') 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 . # 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 -- cgit v1.2.3