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/create Use the passed in st...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/798ea0dc39b7
branches:  trunk
changeset: 531978:798ea0dc39b7
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 09 14:14:45 2007 +0000

description:
Use the passed in string and Pkgdeps when calling strsep, fixing
processing of the build options. Reported by tron@ in PR 36754 and
Mark E. Perkins on pkgsrc-users.

diffstat:

 pkgtools/pkg_install/files/create/perform.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 3c56b3bd5fc6 -r 798ea0dc39b7 pkgtools/pkg_install/files/create/perform.c
--- a/pkgtools/pkg_install/files/create/perform.c       Thu Aug 09 14:12:35 2007 +0000
+++ b/pkgtools/pkg_install/files/create/perform.c       Thu Aug 09 14:14:45 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.17 2007/08/08 22:33:39 joerg Exp $       */
+/*     $NetBSD: perform.c,v 1.18 2007/08/09 14:14:45 joerg Exp $       */
 
 #if HAVE_CONFIG_H
 #include "config.h"
@@ -11,7 +11,7 @@
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.38 1997/10/13 15:03:51 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.17 2007/08/08 22:33:39 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.18 2007/08/09 14:14:45 joerg Exp $");
 #endif
 #endif
 
@@ -68,7 +68,7 @@
                        printf("Registering depends:");
        }
        while (deps) {
-               cp = strsep(&Pkgdeps, " \t\n");
+               cp = strsep(&deps, " \t\n");
                if (*cp) {
                        char *best_installed;
                        best_installed = find_best_matching_installed_pkg(cp);



Home | Main Index | Thread Index | Old Index