зеркало из https://github.com/mozilla/gecko-dev.git
Bug 177850: checksetup.pl was failing if the user didn't have read permissions to the entire Bugzilla path
Patch by Jussi Sirpoma <jussi@comlink.fi> r=justdave, a=justdave
This commit is contained in:
Родитель
bfa31e9e2e
Коммит
56e897befd
|
@ -924,18 +924,16 @@ END
|
|||
if (-e 'data/template') {
|
||||
print "Removing existing compiled templates ...\n" unless $silent;
|
||||
|
||||
# If File::Path::rmtree reported errors, then I'd use that
|
||||
use File::Find;
|
||||
sub remove {
|
||||
return if $_ eq ".";
|
||||
if (-d $_) {
|
||||
rmdir $_ || die "Couldn't rmdir $_: $!\n";
|
||||
} else {
|
||||
unlink $_ || die "Couldn't unlink $_: $!\n";
|
||||
File::Path::rmtree('data/template');
|
||||
|
||||
#Check that the directory was really removed
|
||||
if(-e 'data/template') {
|
||||
print "\n\n";
|
||||
print "The data/template directory could not be removed. Please\n";
|
||||
print "remove it manually and rerun checksetup.pl.\n\n";
|
||||
exit;
|
||||
}
|
||||
}
|
||||
finddepth(\&remove, 'data/template');
|
||||
}
|
||||
|
||||
# Precompile stuff. This speeds up initial access (so the template isn't
|
||||
# compiled multiple times simulataneously by different servers), and helps
|
||||
|
@ -994,7 +992,7 @@ END
|
|||
|
||||
use Cwd;
|
||||
|
||||
$::baseDir = getcwd();
|
||||
$::baseDir = cwd();
|
||||
|
||||
# Don't hang on templates which use the CGI library
|
||||
eval("use CGI qw(-no_debug)");
|
||||
|
|
Загрузка…
Ссылка в новой задаче