summaryrefslogtreecommitdiffstats
path: root/tools/oem-prepare
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2002-03-01 19:07:29 +0000
committerFrancois Pons <fpons@mandriva.com>2002-03-01 19:07:29 +0000
commit086aedec5e4c1a22977866660a1b6cdd510e0b02 (patch)
treed5deccffe8789f40b5e622c71b05826ddc859790 /tools/oem-prepare
parentee1e8b1c53d0d2f9d45fa35ddd7c6413d6a42958 (diff)
downloaddrakx-backup-do-not-use-086aedec5e4c1a22977866660a1b6cdd510e0b02.tar
drakx-backup-do-not-use-086aedec5e4c1a22977866660a1b6cdd510e0b02.tar.gz
drakx-backup-do-not-use-086aedec5e4c1a22977866660a1b6cdd510e0b02.tar.bz2
drakx-backup-do-not-use-086aedec5e4c1a22977866660a1b6cdd510e0b02.tar.xz
drakx-backup-do-not-use-086aedec5e4c1a22977866660a1b6cdd510e0b02.zip
added handling of newer rpmsrate format with INSTALL category.
Diffstat (limited to 'tools/oem-prepare')
-rwxr-xr-xtools/oem-prepare2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/oem-prepare b/tools/oem-prepare
index 5c6a34892..feba93f60 100755
--- a/tools/oem-prepare
+++ b/tools/oem-prepare
@@ -370,7 +370,7 @@ sub read_rpmsrate {
map { packageById($packages, $_) } packageDepsId($p);
my @m3 = ((grep { !/^\d$/ } @m), @m2);
- if (@m3 == 1 && $m3[0] eq 'INSTALL') {
+ if (@m3 >= 1 && $m3[0] eq 'INSTALL' || @m3 >=2 && $m3[1] eq 'INSTALL') {
push @{$packages->{needToCopy} ||= []}, $_;
next; #- don't need to put INSTALL flag for a package.
}