summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/pkgs.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm
index 2d0ad08e4..1398ad94f 100644
--- a/perl-install/pkgs.pm
+++ b/perl-install/pkgs.pm
@@ -672,8 +672,8 @@ sub read_rpmsrate {
map { packageById($packages, $_) } packageDepsId($p);
my @m3 = ((grep { !/^\d$/ } @m), @m2);
- if (@m3 == 1 && $m3[0] eq 'INSTALL') {
- $rate > 1 and push @{$packages->{needToCopy} ||= []}, $_;
+ if (member('INSTALL', @m3)) {
+ member('NOCOPY', @m3) or push @{$packages->{needToCopy} ||= []}, $_;
next; #- don't need to put INSTALL flag for a package.
}
if (packageRate($p)) {