diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-31 07:57:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-31 07:57:06 +0000 |
commit | 0a7dfe2a26c1ec57892cb47d6fa87daf3e372855 (patch) | |
tree | 66bb52e22def658b8c8c7f097db33491936aa325 /perl-install/install_any.pm | |
parent | 8b2c144f3ef57416c3f76ed77bf70fe5fb37fce1 (diff) | |
download | drakx-0a7dfe2a26c1ec57892cb47d6fa87daf3e372855.tar drakx-0a7dfe2a26c1ec57892cb47d6fa87daf3e372855.tar.gz drakx-0a7dfe2a26c1ec57892cb47d6fa87daf3e372855.tar.bz2 drakx-0a7dfe2a26c1ec57892cb47d6fa87daf3e372855.tar.xz drakx-0a7dfe2a26c1ec57892cb47d6fa87daf3e372855.zip |
Support for unselecting some media before the install (begin.)
Diffstat (limited to 'perl-install/install_any.pm')
-rw-r--r-- | perl-install/install_any.pm | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index cf0939bc2..2260e894c 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -361,6 +361,21 @@ sub preConfigureTimezone { add2hash_($o->{timezone}, { UTC => $utc, ntp => $ntp }); } +sub deselectFoundMedia { + my ($o, $hdlists) = @_; + my $l = $o->ask_many_from_list('', +N("The following installation media have been found. +If you want to skip some of them, you can unselect them now."), + { + list => $hdlists, + value => sub { 1 }, + label => sub { $_[0][3] }, + }, + ); + log::l("keeping media " . map { $_->[1] } @$l); + @$l; +} + sub ask_if_suppl_media { my ($o) = @_; our $suppl_already_asked; @@ -410,7 +425,7 @@ sub selectSupplMedia { log::l($@) if $@; useMedium($medium_name); #- probe for an hdlists file and then look for all hdlists listed herein - eval { pkgs::psUsingHdlists($o->{prefix}, $suppl_method, "/mnt/cdrom/media/media_info/hdlists", $o->{packages}, '1s') }; + eval { pkgs::psUsingHdlists($o, $suppl_method, "/mnt/cdrom/media/media_info/hdlists", $o->{packages}, '1s') }; if ($@) { log::l("psUsingHdlists failed: $@"); #- no hdlists found on the suppl. CD @@ -493,7 +508,7 @@ sub setPackages { require pkgs; if (!$o->{packages} || is_empty_array_ref($o->{packages}{depslist})) { my $cdrom; - ($o->{packages}, my $suppl_method) = pkgs::psUsingHdlists($o->{prefix}, $o->{method}); + ($o->{packages}, my $suppl_method) = pkgs::psUsingHdlists($o, $o->{method}); 1 while $suppl_method = $o->selectSupplMedia($suppl_method); |