diff options
| author | Jack Nagel | 2012-10-15 18:03:07 -0500 |
|---|---|---|
| committer | Jack Nagel | 2012-10-15 18:03:07 -0500 |
| commit | ca45225fade7660137b4a439d53ac95d07a52069 (patch) | |
| tree | e6ccc1315297bb46d317171da01af94925492e3a /Library | |
| parent | 39ec66614b183d0784d8a77e93831f04277e07d2 (diff) | |
| download | brew-ca45225fade7660137b4a439d53ac95d07a52069.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 |
