mxcl/homebrew — pull request #11179 by camillol (2012-03-24 08:40:10+00:00)
Title: handle conditional deps when doing brew upgrade

Many formulas add dependencies conditionally based on the presence
of some options in ARGV. These options are saved in the tab file,
but they are not present in ARGV when brew upgrade is called. As a
result, upgraded formulas are installed with the wrong dependencies.
This patch solves the problem by letting formulas see the expected
ARGV while upgrading. In the long term, it would be better to
remove all uses of ARGV from formulas in favor of some options-based
interface, but this bug does not have to wait until a new design is
finalized.

Fixes #11171