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;fp=lib%2FObject%2FRemote%2FFatNode.pm;h=c82d6a32fc7e8ba2245aa5adb2a30fe7433c3ee8;hp=c840cf29e0bb95bb3432c3f2af9980a213a9a31a;hb=55c0d0209fa9d9265ff178f54ae9fe5fdddef3c1;hpb=5ccce2d5c1fb651f83c73c811069003e4a591a53 diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index c840cf2..c82d6a3 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -47,7 +47,7 @@ my %mods = reverse @inc; foreach(keys(%mods)) { if ($exclude{ $mods{$_} }) { - delete($mods{$_}); + delete($mods{$_}); } } @@ -55,7 +55,7 @@ my @non_core_non_arch = ( $mods{'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 - $Config{privlibexp} ne '' && /^\Q$Config{privlibexp}/ + $Config{privlibexp} ne '' && /^\Q$Config{privlibexp}/ or $Config{archlibexp} ne '' && /^\Q$Config{archlibexp}/ or $Config{vendorarchexp} ne '' && /^\Q$Config{vendorarchexp}/ or $Config{sitearchexp} ne '' && /^\Q$Config{sitearchexp}/ @@ -85,14 +85,14 @@ my $end = stripspace <<'END_END'; if (my $fat = $_[0]->{$_[1]}) { if ($exclude{$_[1]}) { warn "Will not pre-load '$_[1]'"; - return undef; + return undef; } - + #warn "Handling $_[1]"; open my $fh, '<', \$fat; return $fh; } - + #Uncomment this to find brokenness #warn "Missing $_[1]"; return; @@ -105,11 +105,11 @@ my $end = stripspace <<'END_END'; use strictures 1; use Object::Remote::Node; - + unless ($Object::Remote::FatNode::INHIBIT_RUN_NODE) { - Object::Remote::Node->run(watchdog_timeout => $WATCHDOG_TIMEOUT); + Object::Remote::Node->run(watchdog_timeout => $WATCHDOG_TIMEOUT); } - + END_END my %files = map +($mods{$_} => scalar do { local (@ARGV, $/) = ($_); <> }),