#19433 closed enhancement (worksforme)
"port upgrade all" should be diagnosed as an error
Reported by: | Dave@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.7.1 |
Keywords: | Cc: | ||
Port: |
Description
If the command is 'port upgrade all', the port command should look to see if there are any members of 'all' that are not installed, and diagnose this usage as incorrect, AND suggest that perhaps the user meant 'port upgrade oudated'.
You may find this useful http://developer.apple.com/documentation/userexperience/Conceptual/AppleHIGuidelines/XHIGWindows/XHIGWindows.html#//apple_ref/doc/uid/20000961-TPXREF23
See also #19428
Change History (11)
comment:1 follow-up: 3 Changed 16 years ago by raimue (Rainer Müller)
comment:2 Changed 16 years ago by raimue (Rainer Müller)
Milestone: | Port Bugs → MacPorts Future |
---|---|
Type: | defect → enhancement |
comment:3 Changed 16 years ago by Dave@…
Replying to raimue@…:
We never instruct to use
port upgrade all
, so I don't see why you would do this at all. The error message that the requested port is not installed is clear enough, isn't it?
It's a reasonable mistake, I think.
comment:4 Changed 16 years ago by jmroot (Joshua Root)
Component: | ports → base |
---|
comment:5 Changed 15 years ago by banshee@…
Speaking as a new user, it was completely obvious to me that 'port upgrade all' would mean to upgrade everything I've got installed. It's exactly like "apt-get upgrade all" . An error message explaining that "all" means something else would have been very helpful.
The current errors aren't useful at all. I asked for "all" and it starts complaining about software that I've never installed. It makes sense, eventually, after you find out that "all" doesn't mean what you think it does.
comment:6 follow-up: 7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Cc: | jmr@… added |
---|---|
Milestone: | MacPorts Future → MacPorts 1.7.1 |
The ChangeLog for MacPorts 1.7.1 says Joshua fixed this in r46052. Are you still seeing a problem with MacPorts 1.7.1? I get, e.g.
$ port installed zope None of the specified ports are installed. $ port upgrade zope Error: zope is not installed $
comment:7 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Replying to ryandesign@…:
Joshua fixed this in r46052.
That is to say, Joshua fixed it in 1.7.1 so that "port upgrade all" no longer tries to install all ports (!). But if the request is to provide a better error message than
$ port upgrade all Error: 2Pong is not installed $
then that request is still outstanding.
comment:8 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)
Milestone: | MacPorts 1.7.1 → MacPorts Future |
---|
comment:9 Changed 15 years ago by jmroot (Joshua Root)
Cc: | jmr@… removed |
---|
comment:10 Changed 7 years ago by raimue (Rainer Müller)
Resolution: | → worksforme |
---|---|
Status: | new → closed |
The original problem seems to have been fixed a long time ago. It is unclear to me what else we could do here. If there is still a problem, please open a new ticket.
comment:11 Changed 7 years ago by jmroot (Joshua Root)
Milestone: | MacPorts Future |
---|
We never instruct to use
port upgrade all
, so I don't see why you would do this at all. The error message that the requested port is not installed is clear enough, isn't it?