[Jifty-commit] r6404 - jifty/trunk/lib/Jifty
Jifty commits
jifty-commit at lists.jifty.org
Sun Feb 22 09:34:51 EST 2009
Author: sunnavy
Date: Sun Feb 22 09:34:49 2009
New Revision: 6404
Modified:
jifty/trunk/lib/Jifty/Plugin.pm
Log:
replaced module_dir to dist_dir in Plugin.pm too, though not 100% sure if this is right
Modified: jifty/trunk/lib/Jifty/Plugin.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin.pm (original)
+++ jifty/trunk/lib/Jifty/Plugin.pm Sun Feb 22 09:34:49 2009
@@ -111,15 +111,12 @@
my $self = shift;
my $class = ref($self);
-#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) };
-# }
+ Jifty::Util->require('File::ShareDir');
+ unless ( $self->{share} ) {
+ local $@
+ ; # We're just avoiding File::ShareDir's failure behaviour of dying
+ eval { $self->{share} = File::ShareDir::dist_dir($class) };
+ }
unless ( $self->{share} ) {
$self->{share} = Jifty::Util->share_root;
if ( $self->{'share'} ) {
More information about the Jifty-commit
mailing list