Fix list for empty kegs

This commit is contained in:
Max Howell 2009-06-26 13:03:20 +01:00
parent 6ee7a116c2
commit a5bbf971ba

View File

@ -108,7 +108,7 @@ def ln name
$n=0 $n=0
lnd(keg, 'etc') {:mkdir} lnd(keg, 'etc') {:mkdir}
lnd(keg, 'include') {:link} lnd(keg, 'include') {:link}
lnd(keg, 'bin') {:link} lnd(keg, 'bin') {:link}
lnd(keg, 'lib') {|path| :mkpath if ['pkgconfig','php'].include? path.to_s} lnd(keg, 'lib') {|path| :mkpath if ['pkgconfig','php'].include? path.to_s}
lnd(keg, 'share') do |path| lnd(keg, 'share') do |path|
mkpaths=(1..9).collect {|x| "man/man#{x}"} <<'man'<<'doc'<<'locale'<<'info'<<'aclocal' mkpaths=(1..9).collect {|x| "man/man#{x}"} <<'man'<<'doc'<<'locale'<<'info'<<'aclocal'
@ -211,7 +211,11 @@ begin
when '-v', '--version' when '-v', '--version'
puts HOMEBREW_VERSION puts HOMEBREW_VERSION
when 'list' when 'list'
fae=shift_formulae_from_ARGV.collect {|name| ($cellar+name).to_s} fae=shift_formulae_from_ARGV.collect do |name|
keg=$cellar+name
keg.directory? ? keg : nil
end
raise 'No such keg' if fae.first.nil? and fae.length == 1
puts `find #{fae.join' '} -type f -print` puts `find #{fae.join' '} -type f -print`
when 'install' when 'install'
shift_formulae_from_ARGV.each do |name| shift_formulae_from_ARGV.each do |name|