summaryrefslogtreecommitdiffstats
path: root/perl-install
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2009-10-19 13:32:03 +0000
committerOlivier Blin <oblin@mandriva.com>2009-10-19 13:32:03 +0000
commit4ab3f61ce57c38aecaf28b3c197bdccbe8dbe88b (patch)
tree50e539863081d6d9b5acea9ae08373b7219aa79d /perl-install
parent52adb090c72578117e19632a3d847290cc3549dd (diff)
downloaddrakx-4ab3f61ce57c38aecaf28b3c197bdccbe8dbe88b.tar
drakx-4ab3f61ce57c38aecaf28b3c197bdccbe8dbe88b.tar.gz
drakx-4ab3f61ce57c38aecaf28b3c197bdccbe8dbe88b.tar.bz2
drakx-4ab3f61ce57c38aecaf28b3c197bdccbe8dbe88b.tar.xz
drakx-4ab3f61ce57c38aecaf28b3c197bdccbe8dbe88b.zip
allow to set preferred packages list in auto_install
(comma-separated list in $o->{preferred_packages})
Diffstat (limited to 'perl-install')
-rw-r--r--perl-install/install/NEWS2
-rw-r--r--perl-install/install/pkgs.pm2
2 files changed, 3 insertions, 1 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 61713f637..d1c2e96b1 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,7 @@
- fix raid initialisation during install (#54706)
- fix raid detection during install (#54706)
+- allow to set preferred packages list in auto_install
+ (comma-separated list in $o->{preferred_packages})
Version 12.67 - 18 October 2009
diff --git a/perl-install/install/pkgs.pm b/perl-install/install/pkgs.pm
index 98b976505..e3d453791 100644
--- a/perl-install/install/pkgs.pm
+++ b/perl-install/install/pkgs.pm
@@ -164,7 +164,7 @@ sub packageCallbackChoices {
sub _packageCallbackChoices_ {
my ($urpm, $choices, $virtual_pkg_name) = @_;
- my ($prefer, $_other) = urpm::select::get_preferred($urpm, $choices, '');
+ my ($prefer, $_other) = urpm::select::get_preferred($urpm, $choices, $::o->{preferred_packages});
if (@$prefer) {
@$prefer;
} elsif ($virtual_pkg_name eq 'kernel') {