diff options
Diffstat (limited to 'perl-install/install')
-rw-r--r-- | perl-install/install/NEWS | 1 | ||||
-rw-r--r-- | perl-install/install/pkgs.pm | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS index 3c5959119..b284ac32c 100644 --- a/perl-install/install/NEWS +++ b/perl-install/install/NEWS @@ -1,4 +1,5 @@ - do not offer to upgrade/install in restore mode +- fix detecting hidden partitions as recovery Version 12.77 - 30 October 2009 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) { |