diff options
author | Sergey Kandaurov <pluknet@FreeBSD.org> | 2011-09-16 09:09:58 +0000 |
---|---|---|
committer | Sergey Kandaurov <pluknet@FreeBSD.org> | 2011-09-16 09:09:58 +0000 |
commit | 566dafa3602b29e6282182311a1825d064c8d230 (patch) | |
tree | 2f6d94b33d5eeb955d6d7d89707c1437d34cd3ea /usr.sbin/pkg_install | |
parent | ed8945cb715c08d56b810528983720382bba272e (diff) | |
download | src-566dafa3602b29e6282182311a1825d064c8d230.tar.gz src-566dafa3602b29e6282182311a1825d064c8d230.zip |
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
Notes
Notes:
svn path=/head/; revision=225610
Diffstat (limited to 'usr.sbin/pkg_install')
-rw-r--r-- | usr.sbin/pkg_install/delete/perform.c | 4 |
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 2557dbcd105d..113df3119828 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); |