prt-auf: suppress the missing packages report at the end of quickdep output

This commit is contained in:
John McQuah 2022-10-01 21:00:39 -04:00
parent 076b572a88
commit 06a14d7331

View File

@ -641,7 +641,7 @@ sub deporder {
@outfile = grep !$seen{$_}++,
(grep { s/0 //g; s/ .provided by .*//g; !m/^\s*$/; } sort(@outfile));
}
return @outfile unless ($#missing >= 0);
return @outfile if (($#missing < 0) or ($format eq "quickdep"));
return @outfile, "MISSING", @missing if ($#missing >= 0);
}
@ -659,8 +659,8 @@ sub up_inst { # returns scalar references to five arrays
# resolve all dependencies unless the command was 'grpinst'
my @targets=($type eq "grpinst") ? @_ : deporder("quickdep",@_);
# filter out the invalid ports
@targets = grep { ($V_REPO{$_}) } @targets;
# filter out the invalid ports if deporder did not already do so
@targets = grep { ($V_REPO{$_}) } @targets if ($type eq "grpinst");
# exempt any locked ports from an update operation
%EXEMPT = map { $_ => 1 } @LOCKED;