]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/commitdiff
haiku: if deterministic build is requested, return a hard-coded haiku
authorSimon McVittie <smcv@debian.org>
Tue, 9 Jun 2015 10:28:04 +0000 (11:28 +0100)
committerSimon McVittie <smcv@debian.org>
Tue, 9 Jun 2015 21:30:43 +0000 (22:30 +0100)
IkiWiki/Plugin/haiku.pm
debian/changelog

index bf23dce673f4b93a264545a4ab4c4156ef869eef..7ce74696ba474aa3e4a75d12f7a2cf3eb49b02cf 100644 (file)
@@ -25,7 +25,13 @@ sub preprocess (@) {
 
        my $haiku;
        eval q{use Coy};
-       if ($@ || ! Coy->can("Coy::with_haiku")) {
+       if ($config{deterministic}) {
+               $haiku = "Coy changes often.
+                         For deterministic builds
+                         try this substitute.
+                        ",
+       }
+       elsif ($@ || ! Coy->can("Coy::with_haiku")) {
                my @canned=(
                        "The lack of a Coy:
                         No darting, subtle haiku.
index d359bf262d8d29f9b7a363f4281b495f8689328b..41a47e57fec75751205795284939102a2310453d 100644 (file)
@@ -34,6 +34,8 @@ ikiwiki (3.20150330) UNRELEASED; urgency=medium
   * Sort backlinks deterministically, by falling back to sorting by href
     if the link text is identical
   * Add a $config{deterministic} option and use it for the docwiki
+  * haiku: if deterministic build is requested, return a hard-coded haiku
+  * If deterministic build is requested, return a hard-coded haiku
 
  -- Joey Hess <id@joeyh.name>  Tue, 28 Apr 2015 12:24:08 -0400