From owner-freebsd-ports@FreeBSD.ORG Thu Aug 24 20:57:08 2006 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BE31E16A4DD for ; Thu, 24 Aug 2006 20:57:08 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx24.fluidhosting.com [204.14.89.7]) by mx1.FreeBSD.org (Postfix) with SMTP id 367BF43D55 for ; Thu, 24 Aug 2006 20:57:08 +0000 (GMT) (envelope-from dougb@FreeBSD.org) Received: (qmail 6425 invoked by uid 399); 24 Aug 2006 20:57:08 -0000 Received: from localhost (HELO ?192.168.0.3?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 24 Aug 2006 20:57:08 -0000 Message-ID: <44EE12A0.9060008@FreeBSD.org> Date: Thu, 24 Aug 2006 13:57:04 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Rene Ladan References: <44ED90D6.5080303@gmail.com> In-Reply-To: <44ED90D6.5080303@gmail.com> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: ports@freebsd.org Subject: Re: inconsistency in portmaster's stale distfile handling X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 20:57:08 -0000 Rene Ladan wrote: > Hi, > > I decided to give portmaster a try to get rid of ${PORTSDIR}/INDEX*db > and /var/db/pkg/pkgdb.db. It works quite nice, but IMO there is a > inconsistency in the -d option: > > after vim got updated from 7.0.x to 7.0.66, portmaster -a -d deleted > vim/vim-6.4.tar.bz2 (which is still an up-to-date distfile for vim6, but > older than vim/vim-7.0.tar.bz2), but not vim/6.4.* > > I don't have vim6 installed, so the -d option should either not delete > vim-6.4.tar.bz2 or remove all of vim6's distfiles, including vim/6.4.* > If someone has both vim6 and vim7 installed, would portmaster -d also > delete vim-6.4.tar.bz2 ? Yes. The stale file algorithm is very aggressive, and tries to find as many matches as possible that could reasonably be a distfile for that package. If you regularly run into situations where -d deletes too many files, you can run portmaster without it and it will prompt you for whether to delete the files or not. hth, Doug -- This .signature sanitized for your protection