diff options
author | joerg <joerg@pkgsrc.org> | 2007-08-09 12:53:35 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2007-08-09 12:53:35 +0000 |
commit | 5d2cdcf3b62683508e27ecddb7b18618915e4779 (patch) | |
tree | 51b8257b06ef33af83df13ceacd0b4d51f6071ac /pkgtools | |
parent | 7aaff567c3fe960e8c99b708a4cd0f429cce642b (diff) | |
download | pkgsrc-5d2cdcf3b62683508e27ecddb7b18618915e4779.tar.gz |
When matching a non-pattern (aka a base name), assign the correct
variable. This fixes pkg_info -e and in turn pkg_tarup.
Diffstat (limited to 'pkgtools')
-rw-r--r-- | pkgtools/pkg_install/files/info/perform.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgtools/pkg_install/files/info/perform.c b/pkgtools/pkg_install/files/info/perform.c index 0dc4fb16e82..c4ff9306214 100644 --- a/pkgtools/pkg_install/files/info/perform.c +++ b/pkgtools/pkg_install/files/info/perform.c @@ -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 @@ CheckForPkg(const char *pkgname) 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); } |