Date: Sat, 19 Feb 2011 07:47:10 GMT From: Gary Palmer <freebsd-gnats@in-addr.com> To: freebsd-gnats-submit@FreeBSD.org Subject: bin/154877: pkg_info error message should contain information about which file the error is in Message-ID: <201102190747.p1J7lAqV019919@red.freebsd.org> Resent-Message-ID: <201102190750.p1J7o851094333@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 154877 >Category: bin >Synopsis: pkg_info error message should contain information about which file the error is in >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sat Feb 19 07:50:08 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Gary Palmer >Release: FreeBSD 7.4-RC1 >Organization: >Environment: >Description: One of my package +CONTENTS files somehow ended up with a @pkgdep line with no argument on it. This prompted pkg_info (and other tools) to issue a warning like: % pkg_info -W /usr/local/bin/vncviewer pkg_info: corrupted record (pkgdep line without argument), ignoring /usr/local/bin/vncviewer was installed by package tightvnc-1.3.10_3 % However it didn't mention which package file the problem was in, leading me to resort to ktrace to figure it out. I shouldn't need to use ktrace to figure it out - the error message should be more explicit about where the problem is. >How-To-Repeat: Edit a +CONTENTS file to add an empty @pkgdep line and then run % pkg_info -W /usr/local/bin/vncviewer >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102190747.p1J7lAqV019919>