[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.10-4-g5add26c

Alex Vandiver alexmv at bestpractical.com
Mon May 16 11:49:40 EDT 2011


The branch, 3.8-trunk has been updated
       via  5add26c8d76d8a25626ba02ebafe0734fb34619f (commit)
      from  88b4a24e77edd29a8fdbdb0145a42437dd3041b6 (commit)

Summary of changes:
 lib/RT/Shredder/Plugin.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

- Log -----------------------------------------------------------------
commit 5add26c8d76d8a25626ba02ebafe0734fb34619f
Author: Mikal Kolbein Gule <m.k.gule at usit.uio.no>
Date:   Wed May 11 11:48:00 2011 -0400

    Fix RT::Shredder::Plugin->List to correctly return paths
    
    The refactoring in 695d1ac broke the return value because of the use of
    the $f loop variable.

diff --git a/lib/RT/Shredder/Plugin.pm b/lib/RT/Shredder/Plugin.pm
index b7c63ec..3438068 100644
--- a/lib/RT/Shredder/Plugin.pm
+++ b/lib/RT/Shredder/Plugin.pm
@@ -129,7 +129,7 @@ sub List
 
     my %res;
     for my $f (reverse @files) {
-        $res{$1} = $_ if $f =~ /([^\\\/]+)\.pm$/;
+        $res{$1} = $f if $f =~ /([^\\\/]+)\.pm$/;
     }
 
     return %res unless $type;

-----------------------------------------------------------------------


More information about the Rt-commit mailing list