summaryrefslogtreecommitdiffstats
path: root/usr.sbin/pkg_install
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2011-09-16 09:09:58 +0000
committerpluknet <pluknet@FreeBSD.org>2011-09-16 09:09:58 +0000
commit498c9ab8d112e92470b9014fe627a02c98573298 (patch)
tree2f6d94b33d5eeb955d6d7d89707c1437d34cd3ea /usr.sbin/pkg_install
parent4d4f51c9f49acd0db0afbc9220a8c3a1e4e74511 (diff)
downloadFreeBSD-src-498c9ab8d112e92470b9014fe627a02c98573298.zip
FreeBSD-src-498c9ab8d112e92470b9014fe627a02c98573298.tar.gz
Print the package name on deletion errors.
It appears this was already done in NetBSD a decade ago, hence I just reuse the change (except our code is bad styled). PR: bin/160516 Approved by: portmgr Approved by: re (kib) Obtained from: NetBSD
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r--usr.sbin/pkg_install/delete/perform.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/pkg_install/delete/perform.c b/usr.sbin/pkg_install/delete/perform.c
index 2557dbc..113df31 100644
--- a/usr.sbin/pkg_install/delete/perform.c
+++ b/usr.sbin/pkg_install/delete/perform.c
@@ -324,8 +324,8 @@ pkg_do(char *pkg)
*/
if (delete_package(FALSE, CleanDirs, &Plist) == FAIL)
warnx(
- "couldn't entirely delete package (perhaps the packing list is\n"
- "incorrectly specified?)");
+ "couldn't entirely delete package `%s'\n"
+ "(perhaps the packing list is incorrectly specified?)", pkg);
if (chdir(LogDir) == FAIL) {
warnx("unable to change directory to %s! deinstall failed", LogDir);
OpenPOWER on IntegriCloud