Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add architecture dependent library directory to @inc for "Require mod…
…ule Foo /home/bar/lib" directive.
  • Loading branch information
racke committed Jul 4, 2015
1 parent 6f9add3 commit 5e314b0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Vend/Config.pm
Expand Up @@ -44,6 +44,7 @@ use vars qw(
$GlobalRead $SystemCodeDone $SystemGroupsDone $CodeDest
$SystemReposDone $ReposDest @include
);
use Config;
use Vend::Safe;
use Fcntl;
use Vend::Parse;
Expand Down Expand Up @@ -2781,11 +2782,13 @@ sub parse_require {
if($perlglobal) {
if ($pathinfo) {
unshift(@INC, $pathinfo);
unshift(@INC, "$pathinfo/$Config{archname}");
}
eval "require $module$oldtype;";
my $error = $@;
if ($pathinfo) {
shift(@INC);
shift(@INC);
}
::logGlobal("while eval'ing module %s got [%s]\n", $module, $error) if $error;
return ! $error;
Expand Down

0 comments on commit 5e314b0

Please sign in to comment.