Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 18:59:13 GMT
From:      Yuri <yuri@tsoft.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/164378: [patch] improvement of pkg_info warning
Message-ID:  <201201221859.q0MIxDFS057719@red.freebsd.org>
Resent-Message-ID: <201201221900.q0MJ0K7A053850@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         164378
>Category:       misc
>Synopsis:       [patch] improvement of pkg_info warning
>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:   Sun Jan 22 19:00:19 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Yuri
>Release:        9.0
>Organization:
n/a
>Environment:
>Description:
This patch adds package name to the pkg_info warning "corrupted record (pkgdep line without argument)"
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- usr.sbin/pkg_install/lib/plist.c.orig       2012-01-22 10:34:23.000000000 -0800
+++ usr.sbin/pkg_install/lib/plist.c    2012-01-22 10:50:32.000000000 -0800
@@ -286,7 +286,8 @@
        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;



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201221859.q0MIxDFS057719>