Repository: lucy
Updated Branches:
  refs/heads/0.4 e43b48311 -> 4df272c63


Check for incompatible Clownfish major version

Add hardcoded version check that prints a meaningful error message if
Lucy 0.4 is run with Clownfish 0.5.


Project: http://git-wip-us.apache.org/repos/asf/lucy/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucy/commit/4df272c6
Tree: http://git-wip-us.apache.org/repos/asf/lucy/tree/4df272c6
Diff: http://git-wip-us.apache.org/repos/asf/lucy/diff/4df272c6

Branch: refs/heads/0.4
Commit: 4df272c63097e4e19a9778f19571c4b1df134de8
Parents: e43b483
Author: Nick Wellnhofer <[email protected]>
Authored: Sun Dec 27 15:45:43 2015 +0100
Committer: Nick Wellnhofer <[email protected]>
Committed: Sun Dec 27 15:50:19 2015 +0100

----------------------------------------------------------------------
 perl/lib/Lucy.pm | 7 +++++++
 1 file changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucy/blob/4df272c6/perl/lib/Lucy.pm
----------------------------------------------------------------------
diff --git a/perl/lib/Lucy.pm b/perl/lib/Lucy.pm
index b57558f..fbd2917 100644
--- a/perl/lib/Lucy.pm
+++ b/perl/lib/Lucy.pm
@@ -24,6 +24,13 @@ our $VERSION = '0.004002';
 $VERSION = eval $VERSION;
 
 use Clownfish;
+BEGIN {
+    die <<'EOF' if $Clownfish::VERSION >= 0.005000;
+This version of Lucy doesn't support Clownfish 0.5.0 or higher.
+You should upgrade Lucy or downgrade Clownfish.
+EOF
+}
+
 use Exporter 'import';
 BEGIN {
     our @EXPORT_OK = qw(

Reply via email to