prt-auf: simplified the filter for invalid ports in up_inst()
This commit is contained in:
parent
23d06ec1f0
commit
51900bf600
@ -43,7 +43,7 @@ if ($action !~ /^(quickdep|search|dsearch|fsearch|info|dup|readme|cat)$/) {
|
||||
close (DB);
|
||||
}
|
||||
|
||||
if ($action =~ /^(diff|quickdiff|listlocked|depends|deptree|remove|install|update|depinst|sysup)$/) {
|
||||
if ($action =~ /^(diff|quickdiff|listlocked|depends|deptree|remove|install|update|depinst|grpinst|sysup)$/) {
|
||||
get_locked_and_aliased();
|
||||
}
|
||||
|
||||
@ -652,7 +652,7 @@ sub up_inst { # returns scalar references to five arrays;
|
||||
my @targets=($type eq "grpinst") ? @_ : deporder("quickdep",@_);
|
||||
|
||||
# filter out the invalid ports if deporder() didn't do so already
|
||||
@targets = grep { (join " ", @allports) =~ /$_/ } @targets if ($type eq "grpinst");
|
||||
@targets = grep { ($V_REPO{$_}) } @targets if ($type eq "grpinst");
|
||||
|
||||
# exempt any locked ports from an sysup operation
|
||||
%EXEMPT = map { $_ => 1 } @LOCKED;
|
||||
|
Loading…
Reference in New Issue
Block a user