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/add Provide more useful det...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4921e0ed8331
branches: trunk
changeset: 535330:4921e0ed8331
user: rillig <rillig%pkgsrc.org@localhost>
date: Tue Nov 13 19:53:11 2007 +0000
description:
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:
pkgtools/pkg_install/files/add/perform.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (30 lines):
diff -r 3664a3326487 -r 4921e0ed8331 pkgtools/pkg_install/files/add/perform.c
--- a/pkgtools/pkg_install/files/add/perform.c Tue Nov 13 19:30:26 2007 +0000
+++ b/pkgtools/pkg_install/files/add/perform.c Tue Nov 13 19:53:11 2007 +0000
@@ -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 @@
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;
}
Home |
Main Index |
Thread Index |
Old Index