pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/pkgtools/pbulk/files/pbulk/scripts Invert logic of the...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fc823c057683
branches:  trunk
changeset: 555652:fc823c057683
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Fri Mar 06 13:00:29 2009 +0000

description:
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:

 pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (17 lines):

diff -r b8dcf2c080ad -r fc823c057683 pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date
--- a/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date Fri Mar 06 12:29:06 2009 +0000
+++ b/pkgtools/pbulk/files/pbulk/scripts/pkg-up-to-date Fri Mar 06 13:00:29 2009 +0000
@@ -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@localhost>.
 # All rights reserved.
@@ -66,5 +66,5 @@
                fi
        done
        [ $found = 1 ]
-       [ "${packages}/All/${dep}.tgz" -nt "${pkg}" ] && exit 1
+       [ "${packages}/All/${dep}.tgz" -ot "${pkg}" ]
 done



Home | Main Index | Thread Index | Old Index