]> sipb.mit.edu Git - ikiwiki.git/commitdiff
response
authorJoey Hess <joey@kodama.kitenet.net>
Wed, 12 Mar 2008 17:06:27 +0000 (13:06 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Wed, 12 Mar 2008 17:06:27 +0000 (13:06 -0400)
doc/bugs/aggregate_plugin_should_honour_a_post__39__s_mctime.mdwn

index 6d837dbdd4afc081fee56d42c5d841d4a1ff234f..b9a661e35271af4f6d94d524320cf147ab41e056 100644 (file)
@@ -1 +1,8 @@
 It would be nice if the [[aggregate_plugin|plugin/aggregate]] would try to extract the m/ctime out of each post and touch the files on the filesystem appropriately, so that ikiwiki reflects the actual time of the post via the [[inline_plugin|plugin/inline]], rather than the time when the aggregation ran to pull the post in. --[[madduck]]
 It would be nice if the [[aggregate_plugin|plugin/aggregate]] would try to extract the m/ctime out of each post and touch the files on the filesystem appropriately, so that ikiwiki reflects the actual time of the post via the [[inline_plugin|plugin/inline]], rather than the time when the aggregation ran to pull the post in. --[[madduck]]
+
+> Like this? (Existing code in aggregate.pm...) --[[Joey]]
+
+       # Set the mtime, this lets the build process get the right creation
+       # time on record for the new page.
+       utime $mtime, $mtime, pagefile($guid->{page})
+               if defined $mtime && $mtime <= time;