From 2ac2dbb591b160baaa62322463014b797c6067eb Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 18 Jul 2010 15:18:51 -0700 Subject: [PATCH] Add 'aka' removal notice. 'aka' is no longer used to define aliases, but we'll keep the method around with a warning so non-master brews have a chance to remove any aka's; otherwise pushing the change will break private brews and we don't want to do that. --- Library/Homebrew/formula.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 5e97330b99..91320cf9a1 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -484,6 +484,17 @@ EOF def skip_clean_paths @skip_clean_paths or [] end + + # 'aka' is no longer used to define aliases, so have it print out + # a notice about the change. This will alert people with private + # formulae that they need to update. + # This notice will be removed in version 0.9 + def aka args + onoe "#{name}: 'aka' is no longer used to define aliases" + puts "To define an alias, create a relative symlink from" + puts "Aliases to Formula. The name of the symlink will be" + puts "detected as an alias for the target formula." + end end end