[Jifty-commit] r6402 - jifty/trunk/lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Sat Feb 21 22:53:18 EST 2009


Author: sunnavy
Date: Sat Feb 21 22:53:18 2009
New Revision: 6402

Modified:
   jifty/trunk/lib/Jifty/Plugin.pm

Log:
comment File::ShareDir part in _calculate_share in lib/Jifty/Plugin.pm

Modified: jifty/trunk/lib/Jifty/Plugin.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin.pm	Sat Feb 21 22:53:18 2009
@@ -2,7 +2,6 @@
 use warnings;
 
 package Jifty::Plugin;
-use File::ShareDir 'module_dir';
 use base qw/Class::Accessor::Fast Jifty::Object/;
 __PACKAGE__->mk_accessors('_pre_init');
 
@@ -38,8 +37,6 @@
 
 =cut
 
-use File::ShareDir;
-
 =head2 new
 
 Sets up a new instance of this plugin.  This is called by L<Jifty>
@@ -114,11 +111,15 @@
     my $self = shift;
     my $class = ref($self);
 
-    unless ( $self->{share} ) {
-        local $@
-            ; # We're just avoiding File::ShareDir's failure behaviour of dying
-        eval { $self->{share} = module_dir($class) };
-    }
+#XXX TODO File::ShareDir 1.0 doesn't play well with Module::Install 0.79
+# waiting for update
+
+# use File::ShareDir 'module_dir';
+#    unless ( $self->{share} ) {
+#        local $@
+#            ; # We're just avoiding File::ShareDir's failure behaviour of dying
+#        eval { $self->{share} = module_dir($class) };
+#    }
     unless ( $self->{share} ) {
         $self->{share} = Jifty::Util->share_root;
         if ( $self->{'share'} ) {


More information about the Jifty-commit mailing list