From owner-freebsd-ports@FreeBSD.ORG Wed Jul 7 18:41:09 2004 Return-Path: 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 B3DAB16A4D3; Wed, 7 Jul 2004 18:41:09 +0000 (GMT) Received: from lakermmtao02.cox.net (lakermmtao02.cox.net [68.230.240.37]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11FCA43D31; Wed, 7 Jul 2004 18:41:09 +0000 (GMT) (envelope-from conrads@cox.net) Received: from dolphin.localnet.net ([68.11.71.51]) by lakermmtao02.cox.net ESMTP <20040707184106.GMIY923.lakermmtao02.cox.net@dolphin.localnet.net>; Wed, 7 Jul 2004 14:41:06 -0400 Received: from dolphin.localnet.net (localhost.localnet.net [127.0.0.1]) i67If7km007518; Wed, 7 Jul 2004 13:41:07 -0500 (CDT) (envelope-from conrads@dolphin.localnet.net) Received: (from conrads@localhost) by dolphin.localnet.net (8.12.11/8.12.11/Submit) id i67If7jn007455; Wed, 7 Jul 2004 13:41:07 -0500 (CDT) (envelope-from conrads) Message-ID: X-Mailer: XFMail 1.5.5 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20040707142812.181c5158.rpratt1950@earthlink.net> Date: Wed, 07 Jul 2004 13:41:06 -0500 (CDT) Organization: A Rag-Tag Band of Drug-Crazed Hippies From: "Conrad J. Sabatier" To: Randy Pratt cc: freebsd-questions@freebsd.org cc: freebsd-ports@freebsd.org Subject: Re: portsclean -DD X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: conrads@cox.net List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 18:41:10 -0000 On 07-Jul-2004 Randy Pratt wrote: > On Wed, 07 Jul 2004 12:25:39 -0500 (CDT) > "Conrad J. Sabatier" wrote: >> >> I understand that -D specified once cleans out any distfiles for >> ports which are not currently installed, but specified twice, does >> it *only* clean out distfiles that are unreferenced by any port in >> the tree, or does it do this in addition to the behavior of the >> single -D switch? >> >> The reason I ask is that I'd like to share a distfiles directory >> between two machines, and I'd like to be able to simply clean out >> any distfiles that are unreferenced by any port in the tree without >> disturbing the distfiles for any ports that may be installed on >> either box. > > Portsclean -DD will clean distfiles for ports which are not > installed _and_ distfiles that are not used by anything in the > ports tree. > > You can verify it for yourself with: > > portsclean -nDD > > since the with the -n, no files are actually deleted and you can > see what action it would have taken. Ah, yes, of course. Didn't even think to try that. :-) Rather unfortunate, though, as it would be really nice to be able to separate the two functions. Looking at the source of portsclean, it looks like he just bumps up an inclusive "distclean level" for each -D switch found. I'll Cc: this to the author and see what he thinks about it. Thanks. -- Conrad J. Sabatier -- "In Unix veritas"