#10827: BUG: 'port -f -R upgrade' rebuilds too much ---------------------------------+------------------------------------------ Reporter: stephen@xemacs.org | Owner: jmr@macports.org Type: defect | Status: assigned Priority: Normal | Milestone: MacPorts base bugs Component: base | Version: Resolution: | Keywords: ---------------------------------+------------------------------------------ Changes (by jmr@macports.org): * cc: jmr@macports.org (removed) * owner: macports-tickets@lists.macosforge.org => jmr@macports.org * status: new => assigned * summary: BUG: 'port -f upgrade' rebuilds too much => BUG: 'port -f -R upgrade' rebuilds too much Comment: OK, the proper fix isn't to make -R imply -n. It is to turn off -R for the dependencies of the requested port. We want to upgrade its dependents, not its dependencies' dependents. The attached patch does this, and can make a huge difference to the amount of upgrade checks (which are all actual rebuilds when using -f). The other thing to do to eliminate the last of the unnecessary upgrading would be to use the depscache for dependents as well as dependencies. -- Ticket URL: <http://trac.macports.org/ticket/10827#comment:18> MacPorts <http://www.macports.org/> Ports system for Mac OS