[Jifty-commit] r6568 - in jifty/trunk: lib/Jifty

Jifty commits jifty-commit at lists.jifty.org
Mon Mar 9 13:44:55 EDT 2009


Author: alexmv
Date: Mon Mar  9 13:44:54 2009
New Revision: 6568

Modified:
   jifty/trunk/   (props changed)
   jifty/trunk/lib/Jifty/Plugin.pm

Log:
 r43082 at kohr-ah:  chmrr | 2009-03-09 13:44:42 -0400
  * Fix up the comment to be more instructive


Modified: jifty/trunk/lib/Jifty/Plugin.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Plugin.pm	(original)
+++ jifty/trunk/lib/Jifty/Plugin.pm	Mon Mar  9 13:44:54 2009
@@ -129,14 +129,15 @@
     }
     unless ( -d $self->{share} ) {
 
-        # for the plugin share resides in plugins/NAME/share
+        # If we've got a plugin distribution in @INC, then
+        # File::Sharedir will be wrong; tear off everything after the
+        # lib/ and replace it with share/
         my $class_to_path = $class;
         $class_to_path =~ s|::|/|g;
 
         $self->{share} = $INC{ $class_to_path . '.pm' };
         $self->{share} =~ s{lib/+\Q$class_to_path.pm}{share};
         $self->{share} = File::Spec->rel2abs( $self->{share} );
-
     }
     return $self->{share};
 }


More information about the Jifty-commit mailing list