diff options
author | beat <beat@FreeBSD.org> | 2012-05-11 16:09:12 +0000 |
---|---|---|
committer | beat <beat@FreeBSD.org> | 2012-05-11 16:09:12 +0000 |
commit | 0404a9beb52fe015e30ac3deb242e88dca5d1209 (patch) | |
tree | 3e4fc44f764674fec989116a38de26312cc067f0 /usr.sbin/pkg_install/lib/plist.c | |
parent | 3a49188aec84c3e43ccf96ab57d3662e128ecb42 (diff) | |
download | FreeBSD-src-0404a9beb52fe015e30ac3deb242e88dca5d1209.zip FreeBSD-src-0404a9beb52fe015e30ac3deb242e88dca5d1209.tar.gz |
- 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
Diffstat (limited to 'usr.sbin/pkg_install/lib/plist.c')
-rw-r--r-- | usr.sbin/pkg_install/lib/plist.c | 3 |
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 f760c61..a1b5c55 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; |