From owner-freebsd-ports@FreeBSD.ORG Thu Aug 24 22:33:09 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 4168916A4DA for ; Thu, 24 Aug 2006 22:33:09 +0000 (UTC) (envelope-from r.c.ladan@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.189]) by mx1.FreeBSD.org (Postfix) with ESMTP id CFF6043D6B for ; Thu, 24 Aug 2006 22:33:04 +0000 (GMT) (envelope-from r.c.ladan@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so751507nfc for ; Thu, 24 Aug 2006 15:32:59 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=dQ3+zsjsFFqrH5/GAB57nQaDHAcbEDWgsAIM78gyo/VgPGHegZiA9aOFf3U0lz0LkHOhMbyAkrX5t9/6/VInma4txsJuH02fFm4Eooq2V07IisST5Nhz86p/sWrquf2BUZASkDec++gxINOz+z4dpobGxiu7HiTST9Jl85UWwVg= Received: by 10.49.55.13 with SMTP id h13mr4532566nfk; Thu, 24 Aug 2006 15:32:59 -0700 (PDT) Received: from ?192.168.123.146? ( [195.241.221.201]) by mx.gmail.com with ESMTP id p20sm5338710nfc.2006.08.24.15.32.58; Thu, 24 Aug 2006 15:32:58 -0700 (PDT) Message-ID: <44EE2919.8060004@gmail.com> Date: Fri, 25 Aug 2006 00:32:57 +0200 From: Rene Ladan User-Agent: Thunderbird 1.5.0.5 (X11/20060729) MIME-Version: 1.0 To: Doug Barton References: <44ED90D6.5080303@gmail.com> <44EE12A0.9060008@FreeBSD.org> In-Reply-To: <44EE12A0.9060008@FreeBSD.org> X-Enigmail-Version: 0.94.0.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 22:33:09 -0000 Doug Barton schreef: > 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. > The nice thing about the -d option is that I don't have to type 'y' each time :) Just mentioning this case... > hth, > > Doug > Regards, Rene -- GPG fingerprint = E738 5471 D185 7013 0EE0 4FC8 3C1D 6F83 12E1 84F6 (subkeys.pgp.net) "It won't fit on the line." -- me, 2001