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 When matching a non-pa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/428db45b964d
branches:  trunk
changeset: 531964:428db45b964d
user:      joerg <joerg%pkgsrc.org@localhost>
date:      Thu Aug 09 12:53:35 2007 +0000

description:
When matching a non-pattern (aka a base name), assign the correct
variable. This fixes pkg_info -e and in turn pkg_tarup.

diffstat:

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

diffs (27 lines):

diff -r 1022ac472340 -r 428db45b964d pkgtools/pkg_install/files/info/perform.c
--- a/pkgtools/pkg_install/files/info/perform.c Thu Aug 09 12:48:46 2007 +0000
+++ b/pkgtools/pkg_install/files/info/perform.c Thu Aug 09 12:53:35 2007 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: perform.c,v 1.33 2007/08/08 22:33:39 joerg Exp $       */
+/*     $NetBSD: perform.c,v 1.34 2007/08/09 12:53:35 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.33 2007/08/08 22:33:39 joerg Exp $");
+__RCSID("$NetBSD: perform.c,v 1.34 2007/08/09 12:53:35 joerg Exp $");
 #endif
 #endif
 
@@ -333,7 +333,7 @@
                if (asprintf(&pattern, "%s-[0-9]*", pkgname) == -1)
                        errx(EXIT_FAILURE, "asprintf failed");
 
-               pkgname = find_best_matching_installed_pkg(pattern);
+               best_installed = find_best_matching_installed_pkg(pattern);
                free(pattern);
        }
 



Home | Main Index | Thread Index | Old Index