diff options
author | rillig <rillig> | 2007-11-13 19:53:11 +0000 |
---|---|---|
committer | rillig <rillig> | 2007-11-13 19:53:11 +0000 |
commit | 161fc13eb7da878185788de34a59d5e74d502fa5 (patch) | |
tree | 03c6f66c753d64a3b3186103d14116a2024087af /pkgtools | |
parent | 55ea340f344939b71eef20edfb2fc1f1a5f335cd (diff) | |
download | pkgsrc-161fc13eb7da878185788de34a59d5e74d502fa5.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.
Diffstat (limited to 'pkgtools')
-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; } |