}
msg 'Adding Manifest entry for ' . $stat->dist;
- unless (scalar run command => [ 'ebuild', $file, 'manifest' ], verbose => 0) {
- error 'ebuild manifest failed -- aborting';
+ my ($success, $errmsg) = run command => [ 'ebuild', $file, 'manifest' ],
+ verbose => 0;
+ unless ($success) {
+ error "$errmsg -- aborting";
1 while unlink $file;
return 0;
}
my @cmd = ('emerge', '=' . $stat->eb_name . '-' . $stat->eb_version);
unshift @cmd, $sudo if $sudo;
- unless (run command => \@cmd, verbose => 1) {
- error 'emerge failed -- aborting';
+ my ($success, $errmsg) = run command => \@cmd,
+ verbose => 1;
+ unless ($success) {
+ error "$errmsg -- aborting";
return 0;
}
my @cmd = ('emerge', '-C', '=' . $stat->eb_name . '-' . $stat->eb_version);
unshift @cmd, $sudo if $sudo;
- unless (run command => \@cmd, verbose => 1) {
- error 'emerge -C failed -- aborting';
+ my ($success, $errmsg) = run command => \@cmd,
+ verbose => 1;
+ unless ($success) {
+ error "$errmsg -- aborting";
return 0;
}