From ca45225fade7660137b4a439d53ac95d07a52069 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Mon, 15 Oct 2012 18:03:07 -0500 Subject: [PATCH] Flatten share_mkpaths Signed-off-by: Jack Nagel --- Library/Homebrew/keg.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index a5af2a19b3..04196099a3 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