From owner-cvs-all@FreeBSD.ORG Wed Dec 1 10:59:37 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 86A5616A4CE; Wed, 1 Dec 2004 10:59:37 +0000 (GMT) Received: from sccrmhc11.comcast.net (sccrmhc11.comcast.net [204.127.202.55]) by mx1.FreeBSD.org (Postfix) with ESMTP id CAD4843D58; Wed, 1 Dec 2004 10:59:36 +0000 (GMT) (envelope-from DougB@dougbarton.net) Received: from [196.7.13.115] (pc115-13.icanncapetown.co.za[196.7.13.115]) by comcast.net (sccrmhc11) with ESMTP id <20041201105933011003so4ae>; Wed, 1 Dec 2004 10:59:34 +0000 Message-ID: <41ADA409.8050109@DougBarton.net> Date: Wed, 01 Dec 2004 12:59:21 +0200 From: Doug Barton User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.3) Gecko/20041110 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Eikemeier References: In-Reply-To: X-Enigmail-Version: 0.89.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org cc: "David E. O'Brien" Subject: Re: cvs commit: src/usr.sbin/pkg_install/info info.h main.c src/usr.sbin/pkg_install/libpkg_version.1 X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Dec 2004 10:59:37 -0000 Oliver Eikemeier wrote: > David E. O'Brien wrote: > >> obrien 2004-10-18 05:34:54 UTC >> >> FreeBSD src repository >> >> Modified files: >> usr.sbin/pkg_install/info info.h main.c >> usr.sbin/pkg_install/lib global.c lib.h >> usr.sbin/pkg_install/version main.c perform.c pkg_version.1 >> Log: >> Add a -q flag to pkg_version. It suppresses the output of <,=,>. >> This makes it possible to "portupgrade `pkg_version -q -l '<'`". > > > You can always do "portupgrade -a" or "portupgrade `pkg_version -l '<' | > awk '{print$1}'`". This will also work when "pkg_version -v" is used, > while the current `pkg_version -qv' has a strange output. I can't see > the real use of this flag, besides, where can I find portupdate(8)? The argument that you can do 'portupgrade ' to replace functionality in the base is a total non-starter, since not only do many of our users (including myself) not use it, but we shouldn't be making decisions about the ports system based on _any_ optional component. portupgrade is also not the only show in town, so we should be careful not to stifle creativity in other areas. I'm actually more sympathetic to your awk argument here, and in fact that's what I was thinking about when I saw David's commit. However, I'm also guilty of adding a feature to the original perl version of pkg_version that could have been done with piped commands, so I have a hard time being critical on this one. :) Doug -- If you're never wrong, you're not trying hard enough