From 4e9007ae592899e6bfbece930ac4b4fb4ddef4bc Mon Sep 17 00:00:00 2001 From: Olivier Blin Date: Mon, 18 Aug 2008 15:03:54 +0000 Subject: pass optional o_match_all_hardware option --- perl-install/pkgs.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/perl-install/pkgs.pm b/perl-install/pkgs.pm index 6072904e5..3d5ccecef 100644 --- a/perl-install/pkgs.pm +++ b/perl-install/pkgs.pm @@ -141,13 +141,15 @@ sub read_rpmsrate { } -sub simple_read_rpmsrate() { - my ($rates, $flags) = read_rpmsrate({}, {}, $::prefix . '/usr/share/meta-task/rpmsrate-raw', 0); +sub simple_read_rpmsrate { + my ($o_match_all_hardware) = @_; + my ($rates, $flags) = read_rpmsrate({}, {}, $::prefix . '/usr/share/meta-task/rpmsrate-raw', $o_match_all_hardware); grep { member('TRUE', @{$flags->{$_}}) && $rates->{$_} >= 5 } keys %$flags; } -sub list_hardware_packages() { - grep { !/openoffice/ } simple_read_rpmsrate(); +sub list_hardware_packages { + my ($o_match_all_hardware) = @_; + grep { !/openoffice/ } simple_read_rpmsrate($o_match_all_hardware); } 1; -- cgit v1.2.1