From: Joey Hess Date: Tue, 6 Jul 2010 20:02:41 +0000 (-0400) Subject: revert bugfix X-Git-Tag: 3.20100722~72 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c23cb312b457c1ac2e0682649fc7ef7035103681;p=ikiwiki.git 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/;