From d634e60406a49fe6a7fb6d5245da5567a92e6077 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Thu, 18 Aug 2005 15:39:24 +0000 Subject: (simple_read_rpmsrate) only install HW packages of weigh 4 or 5 --- perl-install/standalone/harddrake2 | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'perl-install/standalone/harddrake2') diff --git a/perl-install/standalone/harddrake2 b/perl-install/standalone/harddrake2 index c486e516b..5555ca2e9 100755 --- a/perl-install/standalone/harddrake2 +++ b/perl-install/standalone/harddrake2 @@ -584,12 +584,12 @@ $password_w->set_visibility(0); #set_invisible_char('*'); sub simple_read_rpmsrate() { map { split(' ', $_) } map { - if (my ($p, $packages) = /[^!]HW"(.*)"(.*)/) { - if_(detect_devices::matching_desc__regexp($p), $packages); - } elsif (($p, $packages) = /[^!]HW_CAT"(.*)"(.*)/) { - if_(modules::probe_category($p), $packages); - } elsif (($p, $packages) = /[^!]DRIVER"(.*)"(.*)/) { - if_(detect_devices::matching_driver__regexp($p), $packages); + if (my ($priority, $p, $packages) = /(\d+)\s*[^!]HW"(.*)"(.*)/) { + if_(3 < $priority && detect_devices::matching_desc__regexp($p), $packages); + } elsif (($priority, $p, $packages) = /(\d+)\s*[^!]HW_CAT"(.*)"(.*)/) { + if_(3 < $priority && modules::probe_category($p), $packages); + } elsif (($priority, $p, $packages) = /(\d+)\s*[^!]DRIVER"(.*)"(.*)/) { + if_(3 < $priority && detect_devices::matching_driver__regexp($p), $packages); } else { (); } -- cgit v1.2.1