diff options
| author | Jack Nagel | 2012-10-15 18:03:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-10-15 18:03:07 -0500 |
| commit | 6ccd4a9a451c86639c7d24f6eb50107803aa8baf (patch) | |
| tree | 09076ac409fcca8ddf049ff117c12e844c903232 /Library | |
| parent | 761acc47a73bbbf214bda52efbb4500e9560c6da (diff) | |
| download | homebrew-6ccd4a9a451c86639c7d24f6eb50107803aa8baf.tar.bz2 | |
Flatten share_mkpaths
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/keg.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index a5af2a19b..04196099a 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -89,9 +89,9 @@ class Keg < Pathname $n=0 $d=0 - share_mkpaths=%w[aclocal doc info locale man]+(1..8).collect{|x|"man/man#{x}"} - # cat pages are rare, but exist so the directories should be created - share_mkpaths << (1..8).collect{ |x| "man/cat#{x}" } + share_mkpaths = %w[aclocal doc info locale man] + share_mkpaths.concat((1..8).map { |i| "man/man#{i}" }) + share_mkpaths.concat((1..8).map { |i| "man/cat#{i}" }) # yeah indeed, you have to force anything you need in the main tree into # these dirs REMEMBER that *NOT* everything needs to be in the main tree |
