document fix and dependence on filecheck
authorDavid Bremner <bremner@unb.ca>
Mon, 1 Sep 2008 14:03:08 +0000 (11:03 -0300)
committerDavid Bremner <bremner@unb.ca>
Mon, 1 Sep 2008 14:03:08 +0000 (11:03 -0300)
NEWS
README

diff --git a/NEWS b/NEWS
index 7938e7eb563764af7d897f254490a0cbf4af73da..df7ae38bbca8c6379c6300cf3426a7dca6467b32 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,8 @@
+* tag 0.2
+  - put back loadplugin of filecheck, without which everything fails
+  weirdly.
+
+  - document dependency on patched filecheck
 
 * tag 0.1
 
diff --git a/README b/README
index 572197b7d29723ca5cd0e2a34363760c4e635872..3ce5cb88cf7858661edffe8845ca24b25246783a 100644 (file)
--- a/README
+++ b/README
@@ -4,4 +4,33 @@ Required perl modules (only top level dependencies are listed)
 Email::Folder
 Email::Thread
 Email::Mime
-CGI (distributed with perl 5.10.0; maybe before?)
\ No newline at end of file
+CGI (distributed with perl 5.10.0; maybe before?)
+
+You also need a very new version of ikiwiki: post 2.62.1, with the following 
+patch or equivalant applied:
+
+From 84f40d7fa822c6cc09506cca2dbf38a8b19f8bb7 Mon Sep 17 00:00:00 2001
+From: David Bremner <bremner@unb.ca>
+Date: Fri, 29 Aug 2008 20:46:20 -0300
+Subject: [PATCH] call File::MimeInfo::default if ::magic() returns undef
+
+---
+ IkiWiki/Plugin/filecheck.pm |    2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/IkiWiki/Plugin/filecheck.pm b/IkiWiki/Plugin/filecheck.pm
+index 9c7a8db..a94c02b 100644
+--- a/IkiWiki/Plugin/filecheck.pm
++++ b/IkiWiki/Plugin/filecheck.pm
+@@ -127,7 +127,7 @@ sub match_mimetype ($$;@) { #{{{
+       }
+       my $mimetype=File::MimeInfo::Magic::magic($file);
+       if (! defined $mimetype) {
+-              $mimetype="unknown";
++              $mimetype=File::MimeInfo::Magic::default($file);
+       }
+       my $regexp=IkiWiki::glob2re($wanted);
+-- 
+1.5.6.3
+