From ee723527083d8271d9f2ff24153200ada8fcda0d Mon Sep 17 00:00:00 2001 From: "wurblzap%gmail.com" Date: Fri, 17 Aug 2007 21:13:29 +0000 Subject: [PATCH] =?UTF-8?q?Bug=20392573=20=C3=A2=C2=80=C2=93=20Most=20CSS?= =?UTF-8?q?=20files=20are=20missing=20from=20Dusk/,=20flooding=20web=20ser?= =?UTF-8?q?ver=20error=20logs.=20Patch=20by=20Marc=20Schumann=20;=20r=3DLpSolit;=20a=3DLpSolit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://10.0.0.236/trunk@232291 18797224-902f-48f8-a5cc-f745e15eee43 --- .../bugzilla/Bugzilla/Install/Filesystem.pm | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm b/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm index 05da26336f0..8387d01734a 100644 --- a/mozilla/webtools/bugzilla/Bugzilla/Install/Filesystem.pm +++ b/mozilla/webtools/bugzilla/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 => <