X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=scpubgit%2FObject-Remote.git;a=blobdiff_plain;f=lib%2FObject%2FRemote%2FFatNode.pm;h=1b7c659c21e5f991b959c828d812c47c14021524;hp=c82d6a32fc7e8ba2245aa5adb2a30fe7433c3ee8;hb=783105c4013747147c7195f043961af40b9908b7;hpb=55c0d0209fa9d9265ff178f54ae9fe5fdddef3c1 diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index c82d6a3..1b7c659 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -5,7 +5,7 @@ use Config; use B qw(perlstring); my @exclude_mods = qw(XSLoader.pm DynaLoader.pm); -#used by t/watchdog_fatnode +#used by t/watchdog_fatnode our $INHIBIT_RUN_NODE = 0; sub stripspace { @@ -25,7 +25,7 @@ my $command = qq( $extra_libs -mObject::Remote -mObject::Remote::Connector::STDIO - -mCPS::Future + -mFuture -mMRO::Compat -mClass::C3 -mClass::C3::next @@ -42,8 +42,9 @@ $command =~ s/\n/ /g; chomp(my @inc = qx($command)); -my %exclude = map { $_ => 1 } @exclude_mods; +my %exclude = map { $_ => 1 } @exclude_mods; my %mods = reverse @inc; +my %file_names = @inc; foreach(keys(%mods)) { if ($exclude{ $mods{$_} }) { @@ -51,7 +52,7 @@ foreach(keys(%mods)) { } } -my @non_core_non_arch = ( $mods{'Devel/GlobalDestruction.pm'} ); +my @non_core_non_arch = ( $file_names{'Devel/GlobalDestruction.pm'} ); push @non_core_non_arch, grep +( not ( #some of the config variables can be empty which will eval as a matching regex