Skip to content

Commit

Permalink
Do not treat Cpanel::Exception as a special package in elevate-cpanel
Browse files Browse the repository at this point in the history
  • Loading branch information
toddr committed Feb 22, 2024
1 parent 5bbdcbd commit e5c8123
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions maint/perlpkg.static
Original file line number Diff line number Diff line change
Expand Up @@ -2877,11 +2877,6 @@ foreach my $module ( sort keys %EMBEDDED_NON_CORE_MODULES ) {

my @packages_injected = map { my $name = $_; $name =~ s{/}{::}g; $name =~ s{\.pm$}{}; $name } @modules_to_include;

# if Cpanel::Exception::CORE is included also consider that Cpanel::Exception is in
if ( grep { 'Cpanel::Exception::CORE' } @packages_injected ) {
push @packages_injected, 'Cpanel::Exception';
}

my $in_use_base = 0;
my $cpan_module_found = 0;
my $previous_module = '';
Expand Down

0 comments on commit e5c8123

Please sign in to comment.