From c23cb312b457c1ac2e0682649fc7ef7035103681 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 6 Jul 2010 16:02:41 -0400 Subject: [PATCH] revert bugfix Not needed; lastupdate will be 0 for new feeds. --- IkiWiki/Plugin/aggregate.pm | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) 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/; -- 2.45.0