aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorBeat Gaetzi <beat@FreeBSD.org>2012-05-11 16:09:12 +0000
committerBeat Gaetzi <beat@FreeBSD.org>2012-05-11 16:09:12 +0000
commit0a4c7ac6dcb16993ef4e805c4c81da808cdf32ba (patch)
tree3e4fc44f764674fec989116a38de26312cc067f0 /usr.sbin
parent1aaed33edb24c98a09130cd66667d6a795b6b2a8 (diff)
downloadsrc-0a4c7ac6dcb16993ef4e805c4c81da808cdf32ba.tar.gz
src-0a4c7ac6dcb16993ef4e805c4c81da808cdf32ba.zip
- Print package name in case an empty pkgdep line is found.
PR: bin/164378 Submitted by: Yuri <yuri AT tsoft.com> and many others Approved by: flz MFC after: 2 weeks
Notes
Notes: svn path=/head/; revision=235276
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/pkg_install/lib/plist.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pkg_install/lib/plist.c b/usr.sbin/pkg_install/lib/plist.c
index f760c619f645..a1b5c559aa42 100644
--- a/usr.sbin/pkg_install/lib/plist.c
+++ b/usr.sbin/pkg_install/lib/plist.c
@@ -286,7 +286,8 @@ read_plist(Package *pkg, FILE *fp)
if (*cp == '\0') {
cp = NULL;
if (cmd == PLIST_PKGDEP) {
- warnx("corrupted record (pkgdep line without argument), ignoring");
+ warnx("corrupted record for package %s (pkgdep line without "
+ "argument), ignoring", pkg->name);
cmd = FAIL;
}
goto bottom;