Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 May 2007 21:08:23 -0700
From:      Matthew Navarre <mnavarre@cox.net>
To:        RW <fbsd06@mlists.homeunix.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: "portmanager -s" deletes ports?
Message-ID:  <98C46AC6-2999-48D0-AF1C-6BF29221BC20@cox.net>
In-Reply-To: <20070523181943.1a97605c@gumby.homeunix.com.>
References:  <46529E35.7080401@ant.uni-bremen.de> <20070523031505.3071bc9b@gumby.homeunix.com.> <4653F303.2000302@ant.uni-bremen.de> <20070524002531.3cd65668@localhost> <20070523181943.1a97605c@gumby.homeunix.com.>

next in thread | previous in thread | raw e-mail | index | archive | help

On May 23, 2007, at 10:19 AM, RW wrote:

> On Thu, 24 May 2007 00:25:31 +1000
> Norberto Meijome <freebsd@meijome.net> wrote:
>
>> On Wed, 23 May 2007 09:53:39 +0200
>> Heinrich Rebehn <rebehn@ant.uni-bremen.de> wrote:
>>
>>> This is weird! A program that is supposed to show the *status* of
>>> installed ports should never arbitrarily *remove* ports.
>>
>> I agree that is not clear why it is removing ports without warning.
>
> Well, we don't actually know that.  I suspect that there was a  
> warning,

It shouldn't be removing *anything* without user confirmation. any  
other behavior is Broken and Wrong. Warnings are irrelevant if you  
just go ahead and do the dangerous thing you were warning about anyway.

> but it went to stdout and was eaten by "|grep OLD". Portmanger then
> waited for a y/n response for 5 minutes, and went with the default of
> deleting the port.

 From the portmanager(1) man page:
  -s or --status
	  status of installed ports

Says *nothing* about even the possibility of removing installed  
ports.  Just status. If -s is removing installed ports which have  
been moved/removed from the ports tree without confirmation then it's  
broken, plain and simple.

portmanager also has -s -l *AND* -sl options^Wcommands. -sl has not a  
thing to do with -s or -l. Broken by design. -sl should by convention  
be equivalent to -s -l, instead -sl maps to --show-leaves while -s  
maps to --status and --l maps to log. Lame. And there's no difference  
between 'switches' (options) and commands (imperatives).
> _______________________________________________
> 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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?98C46AC6-2999-48D0-AF1C-6BF29221BC20>