]> scripts.mit.edu Git - www/ikiwiki.git/blobdiff - IkiWiki/Plugin/aggregate.pm
aggregate: Fix storing of changed md5.
[www/ikiwiki.git] / IkiWiki / Plugin / aggregate.pm
index e1baae666a02ffe0e9230ed4d81667a2f7ece79a..60c292d52d0db9624381271aa2dc24b001b9244e 100644 (file)
@@ -404,6 +404,7 @@ sub mergestate () {
        }
 
        # New guids can be created during aggregation.
+       # Guids have a few fields that may be updated during aggregation.
        # It's also possible that guids were removed from the on-disk state
        # while the aggregation was in process. That would only happen if
        # their feed was also removed, so any removed guids added back here
@@ -412,6 +413,11 @@ sub mergestate () {
                if (! exists $guids{$guid}) {
                        $guids{$guid}=$myguids{$guid};
                }
+               else {
+                       foreach my $field (qw{md5}) {
+                               $guids{$guid}->{$field}=$myguids{$guid}->{$field};
+                       }
+               }
        }
 }