зеркало из https://github.com/mozilla/pjs.git
Bug 343566: Runtests test 004template.t fails on some systems with a complaint about RELATIVE - Patch by Fr�d�ric Buclin <LpSolit@gmail.com> r=joel a=myk
This commit is contained in:
Родитель
8c4b5c647e
Коммит
97386bb810
|
@ -98,6 +98,10 @@ sub find_templates {
|
||||||
my $local_dir = File::Spec->abs2rel($File::Find::dir,
|
my $local_dir = File::Spec->abs2rel($File::Find::dir,
|
||||||
$File::Find::topdir);
|
$File::Find::topdir);
|
||||||
|
|
||||||
|
# File::Spec 3.13 and newer return "." instead of "" if both
|
||||||
|
# arguments of abs2rel() are identical.
|
||||||
|
$local_dir = "" if ($local_dir eq ".");
|
||||||
|
|
||||||
if ($local_dir) {
|
if ($local_dir) {
|
||||||
$filename = File::Spec->catfile($local_dir, $_);
|
$filename = File::Spec->catfile($local_dir, $_);
|
||||||
} else {
|
} else {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче