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=773b552434958966860724171419454699d8ce3c;hp=e0a0351c12ae208367158639d6d82d00f3e9e935;hb=df8e0ca6a336fb37fd14d40fa345e787bc75b8c2;hpb=eee9a5487590df4c2ead52b01435716afbd23fe5 diff --git a/lib/Object/Remote/FatNode.pm b/lib/Object/Remote/FatNode.pm index e0a0351..773b552 100644 --- a/lib/Object/Remote/FatNode.pm +++ b/lib/Object/Remote/FatNode.pm @@ -22,20 +22,30 @@ my $command = qq( -mObject::Remote -mObject::Remote::Connector::STDIO -mCPS::Future + -mMRO::Compat -mClass::C3 + -mClass::C3::next + -mAlgorithm::C3 -mObject::Remote::ModuleLoader -mObject::Remote::Node + -mMethod::Generate::BuildAll + -mMethod::Generate::DemolishAll -mJSON::PP - -e 'print join "\\n", reverse \%INC' + -e 'print join "\\n", \%INC' ); $command =~ s/\n/ /g; -chomp(my %mods = qx($command)); +chomp(my @inc = qx($command)); + +my %mods = reverse @inc; my @non_core_non_arch = grep +( - not (/^\Q$Config{privlibexp}/ or /^\Q$Config{archlibexp}/) -), grep !/\Q$Config{archname}/, grep !/\W$Config{myarchname}/, keys %mods; + not ( + /^\Q$Config{privlibexp}/ or /^\Q$Config{archlibexp}/ + or /^\Q$Config{vendorarchexp}/ or /^\Q$Config{sitearchexp}/ + ) +), grep !/\Q$Config{archname}/, grep !/\Q$Config{myarchname}/, keys %mods; my $start = stripspace <<'END_START'; # This chunk of stuff was generated by Object::Remote::FatNode. To find @@ -52,6 +62,8 @@ my $end = stripspace <<'END_END'; open my $fh, '<', \$fat; return $fh; } + #Uncomment this to find brokenness + #warn "Missing $_[1]"; return };