aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-18 15:18:51 -0700
committerAdam Vandenberg2010-08-07 18:08:49 -0700
commit2ac2dbb591b160baaa62322463014b797c6067eb (patch)
tree4777d65b8a71440faf86a2e1ccfc2c91f3cd9d86
parent7ff5de2ad816e54eef5baa839365fd465088ae44 (diff)
downloadbrew-2ac2dbb591b160baaa62322463014b797c6067eb.tar.bz2
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.
-rw-r--r--Library/Homebrew/formula.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 5e97330b9..91320cf9a 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