[Bps-public-commit] Module-Install-RTx branch, cored-extension, created. 0.41-1-gf8f5aa7
? sunnavy
sunnavy at bestpractical.com
Wed Jul 8 16:44:38 EDT 2020
The branch, cored-extension has been created
at f8f5aa7961a3f1706d394b694665bcc7af69d60e (commit)
- Log -----------------------------------------------------------------
commit f8f5aa7961a3f1706d394b694665bcc7af69d60e
Author: sunnavy <sunnavy at bestpractical.com>
Date: Thu Jul 9 04:24:44 2020 +0800
Notify user if the extension is already cored
diff --git a/lib/Module/Install/RTx.pm b/lib/Module/Install/RTx.pm
index 3e906c3..ddd0b3a 100644
--- a/lib/Module/Install/RTx.pm
+++ b/lib/Module/Install/RTx.pm
@@ -75,6 +75,17 @@ sub RTx {
$self->requires_rt('4.0.0');
}
+ my $package = $name;
+ $package =~ s/-/::/g;
+ if ( $RT::CORED_PLUGINS{$package} ) {
+ die <<"EOT";
+
+**** Error: Your installed version of RT ($RT::VERSION) already
+ contains this extension in core.
+
+EOT
+ }
+
# Installation locations
my %path;
my $plugin_path;
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list