From owner-freebsd-questions@FreeBSD.ORG Mon Dec 13 16:31:20 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0E5E616A4CE for ; Mon, 13 Dec 2004 16:31:20 +0000 (GMT) Received: from humle.it.ki.se (humle.it.ki.se [130.237.101.252]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3719C43D48 for ; Mon, 13 Dec 2004 16:31:19 +0000 (GMT) (envelope-from christopher.illies@molmed.ki.se) Received: from Klabautermann.ks.se (gate2.ks.se [193.10.63.101]) by humle.it.ki.se (8.13.1/8.13.1) with ESMTP id iBDGVGeP002728; Mon, 13 Dec 2004 17:31:16 +0100 (MET) Received: by Klabautermann.ks.se (Postfix, from userid 1001) id 935FFC14F; Mon, 13 Dec 2004 17:28:56 +0100 (CET) Date: Mon, 13 Dec 2004 17:28:56 +0100 From: Christopher Illies To: freebsd-questions@freebsd.org Message-ID: <20041213162856.GA52571@Klabautermann.ks.se> Mail-Followup-To: freebsd-questions@freebsd.org, Paul Mather References: <20041213103804.3D8C116A4D1@hub.freebsd.org> <1102946139.77329.16.camel@zappa.Chelsea-Ct.Org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1102946139.77329.16.camel@zappa.Chelsea-Ct.Org> User-Agent: Mutt/1.4.2.1i cc: Paul Mather Subject: Re: Typo in: cache-update (portindex) - hangs(?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Dec 2004 16:31:20 -0000 > The reason cache-update becomes idle is that it is waiting for input: > specifically, it's waiting for something from which it can determine the > latest changes to your /etc/ports hierarchy. (See the cache-update man > page for more details.) > > In your case, you should just be able to pipe the output of the cvsup > command into cache-update to achieve the desired effect. (You might > need to use "cache-update -f cvsup-output" the tell it what kind of > input format you're feeding it.) In other words, try something akin to > this: > > cvsup -g -L 2 ports-supfile | cache-update -f cvsup-output > > I use the "cvsup-checkouts" input format when running cache-update. In > other words, my cache-update command is as follows (I'm running > -CURRENT): > > cache-update -f cvsup-checkouts -i /var/db/sup/ports-all/checkouts.cvs:. > > (Note that the final "." is significant.) > > Cache-update can also use the "-f plain" input format in conjunction > with its "find-updated" command to look for changes made after a given > date. See the find-updated man page for details. > > So, you have a lot of flexibility in how you can update the portindex > cache. Thanks a lot for this explanation. Rereading the man page now I actually understand what it says. Maybe the cache-update man page, or indeed any of the portindex man pages would benefit from an examples section to make life easier for people like me... The way I understand FreeBSD works this means that I have to write it and then contact the maintainer to submit it? Christopher