factory: don't reload previously defined formulae
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 <43386ce32af96f5c56f2a88e458cb94cebee3751@gmail.com>

mahori/brew,AnastasiaSulyagina/brew,DomT4/brew,JCount/brew,Homebrew/brew,amar-laksh/brew_sudo,AnastasiaSulyagina/brew,palxex/brew,vitorgalvao/brew,rwhogg/brew,sjackman/homebrew,jmsundar/brew,sjackman/homebrew,toonetown/homebrew,nandub/brew,pseudocody/brew,muellermartin/dist,vitorgalvao/brew,maxim-belkin/brew,pseudocody/brew,claui/brew,bfontaine/brew,muellermartin/dist,Linuxbrew/brew,mistydemeo/homebrew,mgrimes/brew,hanxue/linuxbrew,reitermarkus/brew,ilovezfs/brew,gordonmcshane/homebrew,Linuxbrew/brew,konqui/brew,palxex/brew,DomT4/brew,MikeMcQuaid/brew,JCount/brew,nandub/brew,staticfloat/brew,konqui/brew,maxim-belkin/brew,vitorgalvao/brew,aw1621107/brew,JCount/brew,mahori/brew,alyssais/brew,alyssais/brew,aw1621107/brew,maxim-belkin/brew,MikeMcQuaid/brew,sjackman/homebrew,Homebrew/brew,hanxue/linuxbrew,JCount/brew,toonetown/homebrew,amar-laksh/brew_sudo,alyssais/brew,konqui/brew,nandub/brew,Linuxbrew/brew,rwhogg/brew,aw1621107/brew,bfontaine/brew,reitermarkus/brew,mahori/brew,AnastasiaSulyagina/brew,reitermarkus/brew,Homebrew/brew,tonyg/homebrew,amar-laksh/brew_sudo,ilovezfs/brew,claui/brew,zmwangx/brew,tonyg/homebrew,reelsense/brew,mgrimes/brew,rwhogg/brew,toonetown/homebrew,DomT4/brew,sjackman/homebrew,ilovezfs/brew,reelsense/brew,mistydemeo/homebrew,gordonmcshane/homebrew,gregory-nisbet/brew,mgrimes/brew,konqui/brew,tonyg/homebrew,zmwangx/brew,hanxue/linuxbrew,staticfloat/brew,MikeMcQuaid/brew,mahori/brew,bfontaine/brew,pseudocody/brew,EricFromCanada/brew,nandub/brew,DomT4/brew,jmsundar/brew,staticfloat/brew,gordonmcshane/homebrew,gregory-nisbet/brew,zmwangx/brew,mistydemeo/homebrew,vitorgalvao/brew,reitermarkus/brew,Linuxbrew/brew,Homebrew/brew,EricFromCanada/brew,gregory-nisbet/brew,reelsense/brew,jmsundar/brew,EricFromCanada/brew,claui/brew,palxex/brew,claui/brew,muellermartin/dist,MikeMcQuaid/brew,EricFromCanada/brew