From owner-freebsd-questions@FreeBSD.ORG Mon Oct 10 19:10:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 AC44716A41F for ; Mon, 10 Oct 2005 19:10:40 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mo2so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5354743D46 for ; Mon, 10 Oct 2005 19:10:38 +0000 (GMT) (envelope-from cperciva@freebsd.org) Received: from pd3mr4so.prod.shaw.ca (pd3mr4so-qfe3.prod.shaw.ca [10.0.141.180]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IO500AMFRXPB8C0@l-daemon> for freebsd-questions@freebsd.org; Mon, 10 Oct 2005 13:10:37 -0600 (MDT) Received: from pn2ml4so.prod.shaw.ca ([10.0.121.148]) by pd3mr4so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0IO500H36RXP0NB0@pd3mr4so.prod.shaw.ca> for freebsd-questions@freebsd.org; Mon, 10 Oct 2005 13:10:37 -0600 (MDT) Received: from [192.168.0.60] (S0106006067227a4a.vc.shawcable.net [24.87.209.6]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0IO500G0KRXOYR@l-daemon> for freebsd-questions@freebsd.org; Mon, 10 Oct 2005 13:10:37 -0600 (MDT) Date: Mon, 10 Oct 2005 12:10:36 -0700 From: Colin Percival In-reply-to: To: martinko Message-id: <434ABCAC.2000302@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en X-Enigmail-Version: 0.92.1.0 References: <200510061324.37587.mback99@telia.com> <43453AA1.1060601@freebsd.org> User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051001) Cc: freebsd-questions@freebsd.org Subject: Re: How often cvsup the ports? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 10 Oct 2005 19:10:40 -0000 martinko wrote: > Colin Percival wrote: >> portsnap -I cron update && pkg_version -vIL= > > what is this "I" parameter to pkg_version supposed to be? > i don't seem to have it here on 5.4R. It's a new flag in 6.0R; it means "just use the INDEX, you stupid program". ;-) Without that flag, pkg_version tries to be intelligent -- it will go into each port directory and run "/usr/bin/make -V PKGNAME" in order to work out exactly what version of the port is in the tree, and will only use the INDEX if that fails. Unfortunately, running make(1) repeatedly makes pkg_version about 50 times slower than if it just uses the INDEX file; so if you know that the INDEX is up to date (which will be the case if you use portsnap), the -I option makes pkg_version much faster. Colin Percival