aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formulary.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 5e55543d0..b56d190a0 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -1,3 +1,5 @@
+require "digest/md5"
+
# The Formulary is responsible for creating instances of Formula.
# It is not meant to be used directy from formulae.
@@ -14,6 +16,7 @@ class Formulary
def self.load_formula(name, path)
mod = Module.new
+ const_set("FormulaNamespace#{Digest::MD5.hexdigest(path.to_s)}", mod)
mod.module_eval(path.read, path)
class_name = class_s(name)