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 => <