summaryrefslogtreecommitdiffstats
path: root/perl-install/do_pkgs.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2004-02-12 20:59:55 +0000
committerPascal Rigaux <pixel@mandriva.com>2004-02-12 20:59:55 +0000
commitf59baab5976948265cd839347cde693cb43a2c4a (patch)
tree34a9adb913c86cf3946d0af785e89a05828ab22d /perl-install/do_pkgs.pm
parent50bdbd03aeb42f3cc96b1aa9edeb53b549401bac (diff)
downloaddrakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar.gz
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar.bz2
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.tar.xz
drakx-backup-do-not-use-f59baab5976948265cd839347cde693cb43a2c4a.zip
change return type of pkgs::packages2kernels()
Diffstat (limited to 'perl-install/do_pkgs.pm')
-rw-r--r--perl-install/do_pkgs.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perl-install/do_pkgs.pm b/perl-install/do_pkgs.pm
index c8cf03b23..05dbdb289 100644
--- a/perl-install/do_pkgs.pm
+++ b/perl-install/do_pkgs.pm
@@ -63,9 +63,8 @@ sub check_kernel_module_packages {
if (!$o_ext_name || pkgs::packageByName($do->{o}{packages}, $o_ext_name)) {
my @rpms = map {
- my ($p, $ext, $version) = @$_;
- my $name = "$base_name$ext-$version";
- if ($p->flag_available && pkgs::packageByName($do->{o}{packages}, $name)) {
+ my $name = $base_name . $_->{ext} . '-' . $_->{version};
+ if ($_->{pkg}->flag_available && pkgs::packageByName($do->{o}{packages}, $name)) {
log::l("found kernel module packages $name");
$name;
} else {