aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2009-08-10 16:34:04 +0100
committerMax Howell2009-08-10 16:34:04 +0100
commit435518252910b9839033cab4da1c4138d1a8bd99 (patch)
tree103a901071c77071a24a4f3f1e32702677c1cfdb /Library
parent3cf869385ef01997c53fbb752f87001978b487a9 (diff)
downloadbrew-435518252910b9839033cab4da1c4138d1a8bd99.tar.bz2
Return the installed path(s) from install
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/pathname+yeast.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/Library/Homebrew/pathname+yeast.rb b/Library/Homebrew/pathname+yeast.rb
index a60ce4bd3..67a21cfc2 100644
--- a/Library/Homebrew/pathname+yeast.rb
+++ b/Library/Homebrew/pathname+yeast.rb
@@ -32,18 +32,19 @@ class Pathname
def install src
if src.is_a? Array
- src.each {|src| install src }
+ src.collect {|src| install src }
elsif File.exist? src
mkpath
if File.symlink? src
# we use the BSD mv command because FileUtils copies the target and
# not the link! I'm beginning to wish I'd used Python quite honestly!
- `mv #{src} #{to_s}`
+ raise unless Kernel.system 'mv', src, to_s and $? == 0
else
# we mv when possible as it is faster and you should only be using
# this function when installing from the temporary build directory
FileUtils.mv src, to_s
end
+ return self+src
end
end