aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Howell2009-05-21 01:15:47 +0100
committerMax Howell2009-05-21 01:15:47 +0100
commit5b3e0978eaa88f0049ccf4f1d22dec4509d92fee (patch)
tree0b0b47bda8b3e7d711e641086d3067082d075494
parent84c5c3e5c301382ede5b1f04c7440ee9055589af (diff)
downloadbrew-5b3e0978eaa88f0049ccf4f1d22dec4509d92fee.tar.bz2
Suppress require 'FileUtils' warning
The message "warning: already initialized constant OPT_TABLE" is due to the non-case-sensitive HFS+ filesystem, and the Pathname module including FileUtils as fileutils.
-rwxr-xr-xCellar/homebrew/brew6
-rw-r--r--Cellar/homebrew/brewkit.rb6
-rw-r--r--Formula/grc.rb2
3 files changed, 7 insertions, 7 deletions
diff --git a/Cellar/homebrew/brew b/Cellar/homebrew/brew
index e0c1ca182..692cac5a0 100755
--- a/Cellar/homebrew/brew
+++ b/Cellar/homebrew/brew
@@ -1,8 +1,8 @@
#!/usr/bin/ruby
# Copyright 2009 Max Howell <max@methylblue.com>
# Licensed as per the GPL version 3
-require 'Find'
-require 'Pathname'
+require 'find'
+require 'pathname'
$root = Pathname.new(__FILE__).realpath.dirname.parent.parent
case ARGV[0]
@@ -36,7 +36,7 @@ case ARGV[0]
$root.find do |path|
if path.directory?
name=path.basename
- Find.prune if name == 'brews' or name == 'yeasts'
+ Find.prune if name == 'Cellar' or name == 'Formula'
elsif path.symlink?
path.unlink unless path.readlink.exist?
end
diff --git a/Cellar/homebrew/brewkit.rb b/Cellar/homebrew/brewkit.rb
index 92ab72104..65513eb56 100644
--- a/Cellar/homebrew/brewkit.rb
+++ b/Cellar/homebrew/brewkit.rb
@@ -1,8 +1,8 @@
# Copyright 2009 Max Howell <max@methylblue.com>
# Licensed as per the GPL version 3
-require 'FileUtils'
-require 'Find'
-require 'Pathname'
+require 'find'
+require 'pathname'
+require 'fileutils'
$agent = "Homebrew 0.1 (Ruby; Mac OS X 10.5 Leopard)"
$cellar = Pathname.new(__FILE__).dirname.parent.realpath
diff --git a/Formula/grc.rb b/Formula/grc.rb
index 32dc460fa..d26d9f953 100644
--- a/Formula/grc.rb
+++ b/Formula/grc.rb
@@ -1,6 +1,6 @@
$:.unshift "#{File.dirname __FILE__}/../Cellar/homebrew" #rubysucks
require 'brewkit'
-require 'FileUtils'
+require 'fileutils'
def profile_string
<<-sput