$stat->mk_accessors(qw/name version dist desc uri src license deps
eb_name eb_version eb_dir eb_file fetched_arch
overlay distdir keywords do_manifest
- verbose/);
+ force verbose/);
+ $stat->force($conf->get_conf('force'));
$stat->verbose($conf->get_conf('verbose'));
return 1;
sub _run {
my ($self, $cmd, $verbose) = @_;
+ my $stat = $self->status;
+
+ my ($success, $errmsg, $output) = do {
+ local $ENV{PORTDIR_OVERLAY} = $stat->overlay;
+ local $ENV{PORTAGE_RO_DISTDIRS} = $stat->distdir;
+ run command => $cmd, verbose => $verbose;
+ };
- my ($success, $errmsg, $output) = run command => $cmd, verbose => $verbose;
unless ($success) {
error "$errmsg -- aborting";
if (not $verbose and defined $output and $self->status->verbose) {