From owner-svn-src-head@FreeBSD.ORG Fri May 11 16:09:13 2012 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 758D61065680; Fri, 11 May 2012 16:09:13 +0000 (UTC) (envelope-from beat@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 610348FC16; Fri, 11 May 2012 16:09:13 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q4BG9Dba090697; Fri, 11 May 2012 16:09:13 GMT (envelope-from beat@svn.freebsd.org) Received: (from beat@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q4BG9Dbf090695; Fri, 11 May 2012 16:09:13 GMT (envelope-from beat@svn.freebsd.org) Message-Id: <201205111609.q4BG9Dbf090695@svn.freebsd.org> From: Beat Gaetzi Date: Fri, 11 May 2012 16:09:13 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r235276 - head/usr.sbin/pkg_install/lib X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 May 2012 16:09:13 -0000 Author: beat (ports committer) Date: Fri May 11 16:09:12 2012 New Revision: 235276 URL: http://svn.freebsd.org/changeset/base/235276 Log: - Print package name in case an empty pkgdep line is found. PR: bin/164378 Submitted by: Yuri and many others Approved by: flz MFC after: 2 weeks Modified: head/usr.sbin/pkg_install/lib/plist.c Modified: head/usr.sbin/pkg_install/lib/plist.c ============================================================================== --- head/usr.sbin/pkg_install/lib/plist.c Fri May 11 16:08:51 2012 (r235275) +++ head/usr.sbin/pkg_install/lib/plist.c Fri May 11 16:09:12 2012 (r235276) @@ -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;