[Rt-commit] rt branch, 4.2/plugin-distribution-name, created. rt-4.2.6-179-gfc6c382

Alex Vandiver alexmv at bestpractical.com
Tue Sep 9 15:48:47 EDT 2014


The branch, 4.2/plugin-distribution-name has been created
        at  fc6c3826eaf9e6b179102f4f3ad6122b4b237e8e (commit)

- Log -----------------------------------------------------------------
commit fc6c3826eaf9e6b179102f4f3ad6122b4b237e8e
Author: Alex Vandiver <alexmv at bestpractical.com>
Date:   Tue Sep 9 15:48:32 2014 -0400

    Allow the distribution name (not the package) for plugins

diff --git a/lib/RT/Config.pm b/lib/RT/Config.pm
index 4329fdb..6586a2d 100644
--- a/lib/RT/Config.pm
+++ b/lib/RT/Config.pm
@@ -1088,6 +1088,7 @@ sub _LoadConfig {
         };
         local *Plugin = sub {
             my (@new_plugins) = @_;
+            @new_plugins = map {s/-/::/g if not /:/; $_} @new_plugins;
             my ( $pack, $file, $line ) = caller;
             return $self->SetFromConfig(
                 Option     => \@RT::Plugins,

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


More information about the rt-commit mailing list