Commit d74b70bb authored by IKEDA Soji's avatar IKEDA Soji
Browse files

[-bug] CSS cannot be updated if css.tt2 was older than previously generated CSS.

Timestamp of css.tt2 is not always increased by new installation.
parent 2a271cc4
......@@ -790,7 +790,7 @@ sub _get_css_url {
} elsif (
(exists $hash{$lang || '_main'})
? ($hash{$lang || '_main'} eq $hash)
: ($template_mtime < Sympa::Tools::File::get_mtime($path))
: ($template_mtime == Sympa::Tools::File::get_mtime($path))
) {
return ($url, $hash);
}
......@@ -894,6 +894,8 @@ sub _get_css_url {
return;
}
# Set mtime of source template to detect update of it.
utime $template_mtime, $template_mtime, $path;
return ($url, $hash);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment