diff options
author | Olivier Blin <oblin@mandriva.com> | 2009-11-12 18:37:59 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2009-11-12 18:37:59 +0000 |
commit | 6cc8574a6e37cb33949cac3395c220d63836472a (patch) | |
tree | b4627a7338391d4ff2183fd6dbbc1b531df982a0 /perl-install/install/pkgs.pm | |
parent | f2303d52b00d8f0b4813902cd9fa72aab6a61264 (diff) | |
download | drakx-backup-do-not-use-6cc8574a6e37cb33949cac3395c220d63836472a.tar drakx-backup-do-not-use-6cc8574a6e37cb33949cac3395c220d63836472a.tar.gz drakx-backup-do-not-use-6cc8574a6e37cb33949cac3395c220d63836472a.tar.bz2 drakx-backup-do-not-use-6cc8574a6e37cb33949cac3395c220d63836472a.tar.xz drakx-backup-do-not-use-6cc8574a6e37cb33949cac3395c220d63836472a.zip |
fix detecting hidden partitions as recovery (broken in commit 257797)
Diffstat (limited to 'perl-install/install/pkgs.pm')
-rw-r--r-- | perl-install/install/pkgs.pm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm index 6e01f37e8..02d125b4a 100644 --- a/perl-install/install/pkgs.pm +++ b/perl-install/install/pkgs.pm @@ -81,12 +81,17 @@ sub size2time { } } +sub packageProviding { + my ($packages, $name) = @_; + grep { $_->is_arch_compat && $_->name eq $name } URPM::packages_providing($packages, $name); +} + #- search package with given name and compatible with current architecture. #- take the best one found (most up-to-date). sub packageByName { my ($packages, $name) = @_; - my @l = grep { $_->is_arch_compat && $_->name eq $name } URPM::packages_providing($packages, $name); + my @l = packageProviding($packages, $name); my $best; foreach (@l) { |