From 12989ee42ff09dfd404951e124bb01b13dfe1e93 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 21 Sep 2013 21:22:12 +0100 Subject: bottle: only output relocatable message if >1MB. --- Library/Homebrew/cmd/bottle.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew') diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb index 5321831e3..9c7157d8e 100644 --- a/Library/Homebrew/cmd/bottle.rb +++ b/Library/Homebrew/cmd/bottle.rb @@ -81,7 +81,9 @@ module Homebrew extend self sha1 = bottle_path.sha1 relocatable = false - ohai "Detecting if #{filename} is relocatable..." + if File.size?(bottle_path) > 1*1024*1024 + ohai "Detecting if #{filename} is relocatable..." + end keg = Keg.new f.prefix keg.lock do # Relocate bottle library references before testing for built-in -- cgit v1.2.3