File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -286,8 +286,12 @@ sub ProcessFile
286286 {
287287 if ($sIncludeModule eq " base" )
288288 {
289- my @isa = eval ($expr );
290- push (@{$self -> GetCurrentClass()-> {inherits }}, _FilterOutSystemPackages(@isa )) unless ($@ );
289+ if (substr ($expr ,0,8) =~ / \" require/ ) { }
290+ else
291+ {
292+ my @isa = eval ($expr );
293+ push (@{$self -> GetCurrentClass()-> {inherits }}, _FilterOutSystemPackages(@isa )) unless ($@ );
294+ }
291295 }
292296 else
293297 {
@@ -444,7 +448,12 @@ sub PrintAll
444448# ----------------------------------------
445449# Private Methods
446450# ----------------------------------------
447- sub _FilterOutSystemPackages { return grep ({ !exists $SYSTEM_PACKAGES {$_ } } @_ ); }
451+ sub _FilterOutSystemPackages
452+ {
453+ if (!defined ($_ )) { return @_ };
454+ return grep ({ !exists $SYSTEM_PACKAGES {$_ } } @_ );
455+ }
456+
448457
449458sub _SwitchClass
450459{
You can’t perform that action at this time.
0 commit comments