* Patch fixing various additional problems with test suite. Closes: #425891
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 26 Jun 2007 22:11:59 +0000 (22:11 +0000)
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>
Tue, 26 Jun 2007 22:11:59 +0000 (22:11 +0000)
  once more.

IkiWiki.pm
IkiWiki/Plugin/inline.pm
debian/changelog
doc/bugs/tbasewiki__95__brokenlinks.t_broken.mdwn
po/ikiwiki.pot
t/basewiki_brokenlinks.t

index 96da3ba9d440855b58be4ff713bb8e9d06de5b1d..8da2ddde4bddef185e8c397147c21357ca8b7cd1 100644 (file)
@@ -842,7 +842,6 @@ sub template_params (@) { #{{{
                return "";
        }
 
-       require HTML::Template;
        my @ret=(
                filter => sub {
                        my $text_ref = shift;
@@ -857,6 +856,7 @@ sub template_params (@) { #{{{
 } #}}}
 
 sub template ($;@) { #{{{
+       require HTML::Template;
        HTML::Template->new(template_params(@_));
 } #}}}
 
index 67aaa817e5b1832045e3a0fbac7c517beb5ad12f..08e1f2769b8b7ca3b526e04808cd171d7ba3a2b4 100644 (file)
@@ -155,6 +155,7 @@ sub preprocess_inline (@) { #{{{
                $ret.=$linktemplate->output;
        }
        
+       require HTML::Template;
        my @params=IkiWiki::template_params($params{template}.".tmpl", blind_cache => 1);
        if (! @params) {
                return sprintf(gettext("nonexistant template %s"), $params{template});
index c1f4cb4798193b1d50c7d670b44f68c9a48f8cb4..78b2cb49df5e6c0d01eaf79abcf56bf619dae44e 100644 (file)
@@ -5,8 +5,10 @@ ikiwiki (2.3) UNRELEASED; urgency=low
     w/o confusing ikiwiki.
   * Rcs modules are now imported, so other modules that need similar
     normalisation of configs etc can do so.
+  * Patch fixing various additional problems with test suite. Closes: #425891
+    once more.
 
- -- Joey Hess <joeyh@debian.org>  Sat, 23 Jun 2007 13:10:06 +0100
+ -- Joey Hess <joeyh@debian.org>  Tue, 26 Jun 2007 18:08:24 -0400
 
 ikiwiki (2.2) unstable; urgency=low
 
index 30c70d5506e07f7d7e63487a91c4a858ae498c4a..853c368c898df2c54ebcbe539a981c2f1dde428e 100644 (file)
@@ -55,4 +55,6 @@ Other than ikiwiki.in, am I missing something here?
 
 >> I think this is [debbug 425891]. I have sent there a patch that incorporates the original
 >> author's two diffs but has a more correct solution to the first problem described 
->> above. -- Thomas, 2007-06-26
\ No newline at end of file
+>> above. -- Thomas, 2007-06-26
+
+[[done]]
index 1fde3f4cc894235ac2377d371457f402c49bc9fe..0c7b9cbb2620baa2f578e12c9eda61362f2692d1 100644 (file)
@@ -8,7 +8,7 @@ msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE VERSION\n"
 "Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-06-23 13:12+0100\n"
+"POT-Creation-Date: 2007-06-26 18:10-0400\n"
 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
 "Language-Team: LANGUAGE <LL@li.org>\n"
@@ -42,7 +42,7 @@ msgid "%s is not an editable page"
 msgstr ""
 
 #: ../IkiWiki/CGI.pm:428 ../IkiWiki/Plugin/brokenlinks.pm:24
-#: ../IkiWiki/Plugin/inline.pm:183 ../IkiWiki/Plugin/opendiscussion.pm:17
+#: ../IkiWiki/Plugin/inline.pm:184 ../IkiWiki/Plugin/opendiscussion.pm:17
 #: ../IkiWiki/Plugin/orphans.pm:28 ../IkiWiki/Render.pm:91
 #: ../IkiWiki/Render.pm:171
 msgid "discussion"
@@ -186,16 +186,16 @@ msgstr ""
 msgid "Add a new post titled:"
 msgstr ""
 
-#: ../IkiWiki/Plugin/inline.pm:160
+#: ../IkiWiki/Plugin/inline.pm:161
 #, perl-format
 msgid "nonexistant template %s"
 msgstr ""
 
-#: ../IkiWiki/Plugin/inline.pm:191 ../IkiWiki/Render.pm:95
+#: ../IkiWiki/Plugin/inline.pm:192 ../IkiWiki/Render.pm:95
 msgid "Discussion"
 msgstr ""
 
-#: ../IkiWiki/Plugin/inline.pm:402
+#: ../IkiWiki/Plugin/inline.pm:403
 msgid "RPC::XML::Client not found, not pinging"
 msgstr ""
 
index f70394b85f02553ecdec8329ebe0eec5a610c51e..d7ff58da926f4a4e3f6bc2292d2ae313a2dfa927 100644 (file)
@@ -4,6 +4,6 @@ use strict;
 use Test::More tests => 3;
 
 ok(! system("make ikiwiki.out"));
-ok(! system("PERL5LIB=. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki t/basewiki_brokenlinks t/basewiki_brokenlinks/out"));
+ok(! system("perl -T -I. ./ikiwiki.out -plugin brokenlinks -rebuild -underlaydir=basewiki -templatedir=templates t/basewiki_brokenlinks t/basewiki_brokenlinks/out"));
 ok(`grep 'no broken links' t/basewiki_brokenlinks/out/index.html`);
 system("rm -rf t/basewiki_brokenlinks/out t/basewiki_brokenlinks/.ikiwiki");