From owner-freebsd-questions@FreeBSD.ORG Sun Oct 16 15:34:44 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 8444516A41F for ; Sun, 16 Oct 2005 15:34:44 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: from smtpout1.ywave.com (ycomradius.yelmtel.com [216.227.100.60]) by mx1.FreeBSD.org (Postfix) with SMTP id 2E15A43D46 for ; Sun, 16 Oct 2005 15:34:43 +0000 (GMT) (envelope-from micahjon@ywave.com) Received: (qmail 6624 invoked by uid 502); 16 Oct 2005 15:34:42 -0000 Received: from dsl28217.ywave.com (HELO ?192.168.1.65?) (micahjon@ywave.com@216.227.115.217) by 0 with SMTP; 16 Oct 2005 15:34:42 -0000 X-CLIENT-IP: 216.227.115.217 X-CLIENT-HOST: dsl28217.ywave.com Message-ID: <43527311.7000107@ywave.com> Date: Sun, 16 Oct 2005 08:34:41 -0700 From: Micah User-Agent: Mozilla Thunderbird 1.0.7 (X11/20050930) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Andrew P." References: <20051016014718.25789.qmail@web60025.mail.yahoo.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Peter Matulis , freebsd-questions Subject: Re: portupgrade -ar (why?) 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: Sun, 16 Oct 2005 15:34:44 -0000 Andrew P. wrote: > On 10/16/05, Peter Matulis wrote: > >>--- "Andrew P." wrote: >> >> >>>Honestly guys, what is this thread about? >> >>Hum, understanding something? >> >> >>>You're not gonna make portupgrade work any faster or >>>smoother if you weed out a couple of switches from the >>>command-line. >> >>See above. >> >> >>>I don't mean to bother anyone if you're >>>having fun, but it just seems that portupgrade's manpage >>>covers it all. >> >>Ha, I knew a manpage guy would come around sooner or later. Don't >>you think I read it already? I have questions it does not cover. >> >> >>>If you're not sure - just try it. If something's >>>strange - see if it's a bug, and if you're sure it is - send-pr. >> >>I can use all the switches if I want. The entire alphabet soup. >>But that won't help me understand what is happening. I am not >>satisfied with not "seeing something strange". >> >> >> >> >> >> >>__________________________________________________________ >>Find your next car at http://autos.yahoo.ca >>_______________________________________________ >>freebsd-questions@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-questions >>To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >> >> > > > Yeah, right. Maybe we could get together some time > and understand what's happening over a cup of tea. > > Anyway. I don't know ruby at all. In fact, I don't know > any programming language very well at all. > > % more `which portupgrade` > > > opts.def_option("-a", "--all", > "Do with all the installed packages") { > |$all| > $recursive = false > $upward_recursive = false > } > > opts.def_option("-r", "--recursive", > "Do with all those depending on the given > packages" << NEXTLINE << > "as well") { > $recursive = true unless $all > } > > opts.def_option("-R", "--upward-recursive", > "Do with all those required by the given packages" > << NEXTLINE << > "as well / Fetch recursively if -F is specified") { > $upward_recursive = true unless $all > $fetch_recursive = true > } > > Fortunately, my somewhat basic English allows me > to understand it. Now what part of that is not covered > by the manpage? Look at it again. Unless I'm completely off, -a and -r are mutually exclusive. All sets $all and sets $recurse to false. -r only sets $recurse if $all is not set. So if -a is specified you'll never get a recurse. So the original question still stands - why use -r when you've used -a? Later, Micah