pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install/files/info Not my day. If I write...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c790bba4618e
branches:  trunk
changeset: 532067:c790bba4618e
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Fri Aug 10 21:43:58 2007 +0000

description:
Not my day. If I write "return 0 when at least one match was found",
actually return 0...

diffstat:

 pkgtools/pkg_install/files/info/perform.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (30 lines):

diff -r 61dd3276c003 -r c790bba4618e pkgtools/pkg_install/files/info/perform.c
--- a/pkgtools/pkg_install/files/info/perform.c Fri Aug 10 21:22:40 2007 +0000
+++ b/pkgtools/pkg_install/files/info/perform.c Fri Aug 10 21:43:58 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.38 2007/08/10 15:37:51 joerg Exp $       */
+/*     $NetBSD: perform.c,v 1.39 2007/08/10 21:43:58 joerg Exp $       */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -14,7 +14,7 @@
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.23 1997/10/13 15:03:53 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.38 2007/08/10 15:37:51 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.39 2007/08/10 21:43:58 joerg Exp $");
 #endif
 #endif
 
@@ -372,9 +372,9 @@
        }
 
        if (arg.got_match)
+               return 0;
+       else
                return 1;
-
-       return 0;
 }
 
 void



Home | Main Index | Thread Index | Old Index