X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/45a5e8e972b3f56fbc2b32aa7b9c218c076da7e3..d7cd669470a5c8a920032baac6665bfc8eb4bd5b:/IkiWiki/Plugin/aggregate.pm diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index e473fc643..fe53d868d 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -210,6 +210,8 @@ sub needsbuild (@) { markunseen($feed->{sourcepage}); } } + + return $needsbuild; } sub preprocess (@) { @@ -359,14 +361,9 @@ sub savestate () { my $timestamp=undef; foreach my $feed (keys %feeds) { - if (defined $feeds{$feed}->{lastupdate}) { - my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval}; - if (! defined $timestamp || $timestamp > $t) { - $timestamp=$t; - } - } - else { - $timestamp=0; + my $t=$feeds{$feed}->{lastupdate}+$feeds{$feed}->{updateinterval}; + if (! defined $timestamp || $timestamp > $t) { + $timestamp=$t; } } $newfile=~s/\.new$/time/;