prt-auf: fixed sysup() subroutine
This commit is contained in:
parent
6162bf44d9
commit
ad1e299f4a
@ -643,11 +643,11 @@ sub up_inst { # returns scalar references to five arrays;
|
||||
@targets = grep { (join " ", @allports) =~ / $_ / } @targets if ($type eq "grpinst");
|
||||
|
||||
# exempt any locked ports from an sysup operation
|
||||
%EXEMPT = map { $_ => 0 } @LOCKED;
|
||||
%EXEMPT = map { $_ => 1 } @LOCKED;
|
||||
%WANTED = map { $_ => 1 } @requested;
|
||||
if ($action eq "sysup") { @targets = grep {defined $EXEMPT{$_}} @targets;
|
||||
if ($action eq "sysup") { @targets = grep {! $EXEMPT{$_}} @targets;
|
||||
} else {
|
||||
@targets = grep {(defined $EXEMPT{$_}) or (defined $WANTED{$_})} @targets;
|
||||
@targets = grep {(! $EXEMPT{$_}) or ($WANTED{$_})} @targets;
|
||||
}
|
||||
|
||||
# first determine the directories from which pkgmk must be called
|
||||
|
Loading…
Reference in New Issue
Block a user