bin/153993: [patch] have libpkg report which package is casuing
pkgdep warnings
Eitan Adler
lists at eitanadler.com
Fri Jan 14 18:50:11 UTC 2011
>Number: 153993
>Category: bin
>Synopsis: [patch] have libpkg report which package is casuing pkgdep warnings
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri Jan 14 18:50:10 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Eitan Adler
>Release:
>Organization:
>Environment:
>Description:
change the line emitted from the pkg_* tools from
pkg_version: corrupted record (pkgdep line without argument), ignoring
to something like
pkg_version: corrupted record: pkgdep line without argument (in xterm-267), ignoring
>How-To-Repeat:
>Fix:
Index: plist.c
===================================================================
--- plist.c (revision 216884)
+++ plist.c (working copy)
@@ -286,7 +286,8 @@
if (*cp == '\0') {
cp = NULL;
if (cmd == PLIST_PKGDEP) {
- warnx("corrupted record (pkgdep line without argument), ignoring");
+ warnx("corrupted record: pkgdep line without argument (in %s), ignoring",
+ (pkg->name == NULL) ? "???" : pkg->name);
cmd = FAIL;
}
goto bottom;
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list