aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2012-08-19 00:33:35 -0500
committerJack Nagel2012-08-19 12:04:44 -0500
commitbbc167b9e724a1d875abecc175b46890800d5c8f (patch)
treea55aedb0f05b9c66f9cac036f03723a3c2fcce5e /Library/Formula
parentf33f3eafe6d512864feaa43e70cfc6cfa269aded (diff)
downloadhomebrew-bbc167b9e724a1d875abecc175b46890800d5c8f.tar.bz2
factory: don't reload previously defined formulae
build.rb calls Formula.factory to get a usable Formula object to pass to its install method. However, because the formula file is the actual executing script, its class is already defined, and loading it again causes the class to be re-evaluated, which, unfortunately, is not idempotent. This bug has existed for a very long time, and its side effects include duplicate entries the deps array and mirrors array, among others. Fortunately, the fix is very simple. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
0 files changed, 0 insertions, 0 deletions