diff options
author | rillig <rillig@pkgsrc.org> | 2007-11-13 19:53:11 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-11-13 19:53:11 +0000 |
commit | 93856e2c7f16b1e75720c9ef6d8b6f9414b70da0 (patch) | |
tree | 03c6f66c753d64a3b3186103d14116a2024087af | |
parent | 4df7a486eeaf99a9a63a19d9dabb5e66a24112c0 (diff) | |
download | pkgsrc-93856e2c7f16b1e75720c9ef6d8b6f9414b70da0.tar.gz |
Provide more useful details in the error message for conflicting packages:
- The package that cannot be installed
- The pattern of the conflict
- The name of the installed (conflicting) package.
-rw-r--r-- | pkgtools/pkg_install/files/add/perform.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/pkgtools/pkg_install/files/add/perform.c b/pkgtools/pkg_install/files/add/perform.c index 9ca53c9ddb4..a514ce710f8 100644 --- a/pkgtools/pkg_install/files/add/perform.c +++ b/pkgtools/pkg_install/files/add/perform.c @@ -1,4 +1,4 @@ -/* $NetBSD: perform.c,v 1.66 2007/11/08 23:24:56 joerg Exp $ */ +/* $NetBSD: perform.c,v 1.67 2007/11/13 19:53:11 rillig 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.44 1997/10/13 15:03:46 jkh Exp"; #else -__RCSID("$NetBSD: perform.c,v 1.66 2007/11/08 23:24:56 joerg Exp $"); +__RCSID("$NetBSD: perform.c,v 1.67 2007/11/13 19:53:11 rillig Exp $"); #endif #endif @@ -663,9 +663,8 @@ pkg_do(const char *pkg, lpkg_head_t *pkgs) printf("Package `%s' conflicts with `%s'.\n", PkgName, p->name); best_installed = find_best_matching_installed_pkg(p->name); if (best_installed) { - warnx("Conflicting package `%s'installed, please use\n" - "\t\"pkg_delete %s\" first to remove it!", - best_installed, best_installed); + warnx("Package `%s' conflicts with `%s', and `%s' is installed.", + PkgName, p->name, best_installed); free(best_installed); ++errc; } |