From: Joey Hess Date: Tue, 6 Jul 2010 20:02:41 +0000 (-0400) Subject: revert bugfix X-Git-Url: https://scripts.mit.edu/gitweb/www/ikiwiki.git/commitdiff_plain/c23cb312b457c1ac2e0682649fc7ef7035103681 revert bugfix Not needed; lastupdate will be 0 for new feeds. --- diff --git a/IkiWiki/Plugin/aggregate.pm b/IkiWiki/Plugin/aggregate.pm index e473fc643..7789c4c2a 100644 --- a/IkiWiki/Plugin/aggregate.pm +++ b/IkiWiki/Plugin/aggregate.pm @@ -359,14 +359,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/;