From cca9361a1b559716240bf2489891fca0ee201b62 Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" <> Date: Sat, 18 Aug 2007 02:11:49 +0000 Subject: Bug 392573 – Most CSS files are missing from Dusk/, flooding web server error logs. Patch by Marc Schumann ; r=LpSolit; a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Bugzilla/Install/Filesystem.pm | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Bugzilla/Install') diff --git a/Bugzilla/Install/Filesystem.pm b/Bugzilla/Install/Filesystem.pm index 05da26336..8387d0173 100644 --- a/Bugzilla/Install/Filesystem.pm +++ b/Bugzilla/Install/Filesystem.pm @@ -34,6 +34,7 @@ use Bugzilla::Util; use File::Find; use File::Path; +use File::Basename; use IO::File; use POSIX (); @@ -201,17 +202,22 @@ sub FILESYSTEM { ); # Each standard stylesheet has an associated custom stylesheet that - # we create. - foreach my $standard (<$skinsdir/standard/*.css>) { - my $custom = $standard; - $custom =~ s|\Q$skinsdir\E/standard|$skinsdir/custom|; - $create_files{$custom} = { perms => $ws_readable, contents => <) { + next unless -d $skin_dir; + next if basename($skin_dir) =~ /^cvs$/i; + foreach (<$skinsdir/standard/*.css>) { + my $standard_css_file = basename($_); + my $custom_css_file = "$skin_dir/$standard_css_file"; + $create_files{$custom_css_file} = { perms => $ws_readable, contents => <