aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2012-11-25 15:04:58 -0600
committerJack Nagel2012-11-25 15:11:57 -0600
commita5a530573a8c7488933d77fdd4869fd2de94823e (patch)
treea33d11a5aa9a26ba6742b8510f3a6566ccc9cda7
parent98649c4bdbe9235900c4da16acf9dda892cb5632 (diff)
downloadhomebrew-a5a530573a8c7488933d77fdd4869fd2de94823e.tar.bz2
Rewrite plists when installing from a bottle
-rw-r--r--Library/Homebrew/extend/pathname.rb2
-rw-r--r--Library/Homebrew/formula_installer.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/extend/pathname.rb b/Library/Homebrew/extend/pathname.rb
index 2b04cae57..d39b21689 100644
--- a/Library/Homebrew/extend/pathname.rb
+++ b/Library/Homebrew/extend/pathname.rb
@@ -98,7 +98,7 @@ class Pathname
# we assume this pathname object is a file obviously
def write content
- #raise "Will not overwrite #{to_s}" if exist? and not ARGV.force?
+ raise "Will not overwrite #{to_s}" if exist? and not ARGV.force?
dirname.mkpath
File.open(self, 'w') {|f| f.write content }
end
diff --git a/Library/Homebrew/formula_installer.rb b/Library/Homebrew/formula_installer.rb
index ee4ab52d4..06c12ced6 100644
--- a/Library/Homebrew/formula_installer.rb
+++ b/Library/Homebrew/formula_installer.rb
@@ -288,9 +288,9 @@ class FormulaInstaller
end
def install_plist
- # Install a plist if one is defined
- # Skip plist file exists check: https://github.com/mxcl/homebrew/issues/15849
if f.startup_plist
+ # A plist may already exist if we are installing from a bottle
+ f.plist_path.unlink if f.plist_path.exist?
f.plist_path.write f.startup_plist
f.plist_path.chmod 0644
end