diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-05-11 04:10:04 -0400 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2016-07-05 22:40:16 +0200 |
commit | bb6a6b14d66b6d261d73c10840b8ec2ae1589d1a (patch) | |
tree | fbbb8d47a7ead5eb4b64fa9fec2dc775710904bb /perl-install/install/any.pm | |
parent | 8cd9c7cadbb8c35b618742691c525b7e39ebe435 (diff) | |
download | drakx-bb6a6b14d66b6d261d73c10840b8ec2ae1589d1a.tar drakx-bb6a6b14d66b6d261d73c10840b8ec2ae1589d1a.tar.gz drakx-bb6a6b14d66b6d261d73c10840b8ec2ae1589d1a.tar.bz2 drakx-bb6a6b14d66b6d261d73c10840b8ec2ae1589d1a.tar.xz drakx-bb6a6b14d66b6d261d73c10840b8ec2ae1589d1a.zip |
respect auto_inst media selection (mga#12299)
Diffstat (limited to 'perl-install/install/any.pm')
-rw-r--r-- | perl-install/install/any.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/perl-install/install/any.pm b/perl-install/install/any.pm index 0a2675065..82f700f15 100644 --- a/perl-install/install/any.pm +++ b/perl-install/install/any.pm @@ -580,6 +580,14 @@ sub setPackages { } install::pkgs::start_pushing_error(); + + # in auto-install mode, we enforce selected media, else we respect media.cfg's default: + if ($::auto_install && !is_empty_array_ref($o->{enabled_media})) { + # respect enabled/disabled media selection: + foreach my $medium (@{$urpm->{media}}) { + $medium->{temp_enabled} = member($medium->{name}, @{$o->{enabled_media}}); + } + } media_screen($o) if !$::auto_install && !$::o->{match_all_hardware}; enable_choosen_media($o); my @choosen_media = map { $_->{name} } grep { !$_->{ignore} } @{$urpm->{media}}; |