From 5e4dc0ab78c6a312fc84c264f93bc8fd901f8c13 Mon Sep 17 00:00:00 2001 From: dakkar Date: Thu, 10 Sep 2015 16:06:30 +0100 Subject: fix deps out-of-date comparison --- lib/WebCoso/Maker.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/WebCoso/Maker.pm b/lib/WebCoso/Maker.pm index b64c9cf..02e1a18 100644 --- a/lib/WebCoso/Maker.pm +++ b/lib/WebCoso/Maker.pm @@ -41,9 +41,9 @@ role WebCoso::Maker[$from,$to] { my $dst = %dsts{$lang}; my @deps = %deps{$lang} // (); say "Maker[$from,$to]($.dir/$.basename)::make lang $lang"; - say "Maker[$from,$to]($.dir/$.basename)::make dst modified {$dst ?? $dst.modified !! 'not-there'} src modified {$src.modified}"; - next if $dst and not $dst.modified before - all($src.modified,@deps».modified.flat); + say "Maker[$from,$to]($.dir/$.basename)::make dst modified {$dst ?? $dst.modified !! 'not-there'} src modified {$src.modified} deps modified {@deps».modified}"; + next if $dst and not ($dst.modified <= + all($src.modified,@deps».modified.flat)); say "Maker[$from,$to]($.dir/$.basename)::make processing $lang"; my ($processed-contents,@new_deps) = self.process-contents( -- cgit v1.2.3