1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-26 16:18:31 +00:00

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
This commit is contained in:
Sergey Kandaurov 2011-09-16 09:09:58 +00:00
parent ed8945cb71
commit 566dafa360
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225610

View File

@ -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);