Opened 14 years ago

Closed 14 years ago

#27158 closed enhancement (invalid)

Upgrade order of the port command prevents the upgrade of the other available ports

Reported by: lev_@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: base Version: 1.9.1
Keywords: Cc:
Port:

Description

When the command "port upgrade outdated" is run, the port program goes through the outdated ports alphabetically one by one. However, if it encounters an error, it displays the error message and quits leaving the remaining outdated ports not upgraded.

I encountered this problem recently, when cmake error blocked pretty much everything not upgraded for a while, and VLC error blocked all the xorg-* ports from getting upgraded.

Even though it's possible to feed the port names one by one to the "port upgrade" command after getting the outdated list, it would be a nice behavior for the port command to skip to the next port, if there's an error.

Just a thought...

Change History (3)

comment:1 Changed 14 years ago by danielluke (Daniel J. Luke)

Does -p not work?

from the man page:

-p       Despite any errors encountered, proceed to process multiple
              ports and commands.

comment:2 Changed 14 years ago by lev_@…

I wasn't aware of the "p" option. I'll update my scripts and report again if there's a need.

Thanks for the fast response. :-)

comment:3 Changed 14 years ago by jmroot (Joshua Root)

Keywords: upgrade-order removed
Port: port removed
Resolution: invalid
Status: newclosed
Note: See TracTickets for help on using tickets.