From owner-freebsd-stable@FreeBSD.ORG Sun Feb 12 16:02:12 2006 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DCA316A420 for ; Sun, 12 Feb 2006 16:02:12 +0000 (GMT) (envelope-from krion@voodoo.bawue.com) Received: from voodoo.bawue.com (voodoo.bawue.com [212.9.161.119]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3421C43D45 for ; Sun, 12 Feb 2006 16:02:12 +0000 (GMT) (envelope-from krion@voodoo.bawue.com) Received: from krion by voodoo.bawue.com with local (Exim 4.60 (FreeBSD)) (envelope-from ) id 1F8Jfv-0006LU-OE; Sun, 12 Feb 2006 17:02:11 +0100 Date: Sun, 12 Feb 2006 17:02:11 +0100 From: Kirill Ponomarew To: Sebastian Stach , freebsd-stable@freebsd.org Message-ID: <20060212160211.GA85794@voodoo.bawue.com> References: <20060212145150.GB40333@sebsta.dialin.t-online.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060212145150.GB40333@sebsta.dialin.t-online.de> X-NIC-HDL: KP869-RIPE Keywords: 477273987 Cc: Subject: Re: problem with pkg_version X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 12 Feb 2006 16:02:12 -0000 On Sun, Feb 12, 2006 at 03:51:50PM +0100, Sebastian Stach wrote: > When using pkg_version with the -o argument to print the origin > instead of the package name it doesn't work correct. > > # pkg_version -o > (output stripped) > x11/xorg = > x11/xorg = > x11/xorg = > (output stripped) > > The output should be: > > # pkg_version -o > (output stripped) > x11/xorg = > x11/xorg-clients = > x11/xorg-documents = > (output stripped) > > Looking at the code in "/usr/src/usr.sbin/pkg_install/version/perform.c" > in function "show_version" pkg_version removes everything after the last > "-" from the origin. [snip] Yeah, it seems I broke it in rev. 1.13, sorry for that, the fix will be committed. -Kirill