* Fix re-rendering of pages when a linked to page goes away. This was broken

in version 1.50 with the addition of %destsources. Thanks, Ethan
  Glasser-Camp.
master
joey 2007-07-26 19:41:04 +00:00
parent 3b316c6f93
commit 72c95e8434
4 changed files with 18 additions and 27 deletions

View File

@ -320,6 +320,11 @@ sub refresh () { #{{{
prune($config{destdir}."/".$_) prune($config{destdir}."/".$_)
foreach @{$oldrenderedfiles{$page}}; foreach @{$oldrenderedfiles{$page}};
delete $pagesources{$page}; delete $pagesources{$page};
foreach (keys %destsources) {
if ($destsources{$_} eq $page) {
delete $destsources{$_};
}
}
} }
} }

5
debian/changelog vendored
View File

@ -11,8 +11,11 @@ ikiwiki (2.5) UNRELEASED; urgency=low
* Fix graphviz plugin to not try to read images as utf-8; they might * Fix graphviz plugin to not try to read images as utf-8; they might
sometimes contain invalid utf-8 byte sequences. Thanks, sometimes contain invalid utf-8 byte sequences. Thanks,
HenrikBrixAndersen. HenrikBrixAndersen.
* Fix re-rendering of pages when a linked to page goes away. This was broken
in version 1.50 with the addition of %destsources. Thanks, Ethan
Glasser-Camp.
-- Joey Hess <joeyh@debian.org> Tue, 24 Jul 2007 22:14:41 -0400 -- Joey Hess <joeyh@debian.org> Thu, 26 Jul 2007 15:30:22 -0400
ikiwiki (2.4) unstable; urgency=low ikiwiki (2.4) unstable; urgency=low

View File

@ -13,21 +13,4 @@ Here's a patch that trawls through %destsources deleting pages when they
are found to be deleted. It's a little inelegant, but it's simple and it are found to be deleted. It's a little inelegant, but it's simple and it
works. --Ethan works. --Ethan
<pre> Thankyou for the [[patch]]! [[Done]]. --[[Joey]]
diff -urX ignorepats ikiwiki/IkiWiki/Render.pm ikidev/IkiWiki/Render.pm
--- ikiwiki/IkiWiki/Render.pm 2007-07-25 15:58:24.501068000 -0700
+++ ikidev/IkiWiki/Render.pm 2007-07-25 20:08:32.966449000 -0700
@@ -320,6 +320,11 @@
prune($config{destdir}."/".$_)
foreach @{$oldrenderedfiles{$page}};
delete $pagesources{$page};
+ foreach (keys %destsources){
+ if ($destsources{$_} == $page) {
+ delete $destsources{$_};
+ }
+ }
}
}
</pre>

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-07-24 22:29-0400\n" "POT-Creation-Date: 2007-07-26 15:36-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -460,37 +460,37 @@ msgstr ""
msgid "removing old page %s" msgid "removing old page %s"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:343 #: ../IkiWiki/Render.pm:348
#, perl-format #, perl-format
msgid "scanning %s" msgid "scanning %s"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:348 #: ../IkiWiki/Render.pm:353
#, perl-format #, perl-format
msgid "rendering %s" msgid "rendering %s"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:360 #: ../IkiWiki/Render.pm:365
#, perl-format #, perl-format
msgid "rendering %s, which links to %s" msgid "rendering %s, which links to %s"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:377 #: ../IkiWiki/Render.pm:382
#, perl-format #, perl-format
msgid "rendering %s, which depends on %s" msgid "rendering %s, which depends on %s"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:415 #: ../IkiWiki/Render.pm:420
#, perl-format #, perl-format
msgid "rendering %s, to update its backlinks" msgid "rendering %s, to update its backlinks"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:427 #: ../IkiWiki/Render.pm:432
#, perl-format #, perl-format
msgid "removing %s, no longer rendered by %s" msgid "removing %s, no longer rendered by %s"
msgstr "" msgstr ""
#: ../IkiWiki/Render.pm:453 #: ../IkiWiki/Render.pm:458
#, perl-format #, perl-format
msgid "ikiwiki: cannot render %s" msgid "ikiwiki: cannot render %s"
msgstr "" msgstr ""