aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/bottle.rb2
-rw-r--r--Library/Homebrew/cmd/list.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index f8b79734f..0160d3198 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -35,7 +35,7 @@ EOS
module Homebrew
def keg_contains string, keg
if not ARGV.homebrew_developer?
- return quiet_system 'fgrep', '--recursive', '--quiet', '--max-count=1', string, keg
+ return quiet_system 'fgrep', '--recursive', '--quiet', '--max-count=1', string, keg.to_s
end
result = false
diff --git a/Library/Homebrew/cmd/list.rb b/Library/Homebrew/cmd/list.rb
index c0784336c..0ec18d9da 100644
--- a/Library/Homebrew/cmd/list.rb
+++ b/Library/Homebrew/cmd/list.rb
@@ -18,7 +18,7 @@ module Homebrew
ENV['CLICOLOR'] = nil
exec 'ls', *ARGV.options_only << HOMEBREW_CELLAR
elsif ARGV.verbose? or not $stdout.tty?
- exec "find", *ARGV.kegs + %w[-not -type d -print]
+ exec "find", *ARGV.kegs.map(&:to_s) + %w[-not -type d -print]
else
ARGV.kegs.each{ |keg| PrettyListing.new keg }
end