Skip to content

Commit

Permalink
Merge f82d654 into 52adb14
Browse files Browse the repository at this point in the history
  • Loading branch information
halcon74 committed Sep 28, 2020
2 parents 52adb14 + f82d654 commit 849933a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion lib/Gentoo/Portage/Q.pm
Expand Up @@ -61,7 +61,18 @@ Returns a specific environment variable as exists prior to ebuild.sh.
sub envvar {
my ( $self, $var ) = @_;

return $ENV{$var} if defined $ENV{$var}; # prefer to use custom from ENV
# prefer to use custom from ENV
if ($var eq 'EROOT' or $var eq 'EPREFIX') {
$ENV{$var} and return $ENV{$var};
}
else {
if ($var eq 'USE') {
return 'perl -python';
}
else {
defined $ENV{$var} and return $ENV{$var};
}
}

$self->{_portage_env} ||= $self->_read_portage_env();

Expand Down

0 comments on commit 849933a

Please sign in to comment.