diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-10 04:06:20 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2004-08-10 04:06:20 +0000 |
commit | ac8319729327f501e39b40af655672e7d4e04b7e (patch) | |
tree | a566b364fae391a06f95b79dd3ae266427eba02b /perl-install | |
parent | 157037008a0d4cf2090c9907c5eb621bd92a24d8 (diff) | |
download | drakx-ac8319729327f501e39b40af655672e7d4e04b7e.tar drakx-ac8319729327f501e39b40af655672e7d4e04b7e.tar.gz drakx-ac8319729327f501e39b40af655672e7d4e04b7e.tar.bz2 drakx-ac8319729327f501e39b40af655672e7d4e04b7e.tar.xz drakx-ac8319729327f501e39b40af655672e7d4e04b7e.zip |
Back to first medium after having added a supplementary one.
Set prefix for http supplementary media, since $URLPREFIX is not defined.
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install_any.pm | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/perl-install/install_any.pm b/perl-install/install_any.pm index 0d52340f3..2ad6013c0 100644 --- a/perl-install/install_any.pm +++ b/perl-install/install_any.pm @@ -371,6 +371,7 @@ sub setPackages { #- ask whether there are supplementary media SUPPL: { + my $prev_asked_medium = $asked_medium; if ($suppl_method && !$o->{isUpgrade} && (my $suppl = $o->ask_from_list_('', N("Do you have a supplementary installation media to configure?"), [ N_("None"), N_("CD-ROM"), N_("Network (http)") ], 'None') @@ -409,8 +410,8 @@ sub setPackages { "/mnt/cdrom/media/main/media_info/hdlist$medium_name.cz", ); if ($supplmedium) { - log::l("read suppl hdlist"); - $supplmedium->{prefix} = "removable://mnt/cdrom"; #- pour install_urpmi + log::l("read suppl hdlist on cdrom"); + $supplmedium->{prefix} = "removable://mnt/cdrom"; #- for install_urpmi $supplmedium->{selected} = 1; $supplmedium->{method} = 'cdrom'; } else { @@ -426,6 +427,7 @@ sub setPackages { log::l($@) if $@; $o->ask_warn('', N("Can't find hdlist file on this mirror")); $suppl_method = ''; + useMedium($prev_asked_medium); last SUPPL; } my $tmphdlistfile = pkgs::urpmidir($o->{prefix})."/hdlist$medium_name.cz"; @@ -446,8 +448,10 @@ sub setPackages { ); unlink $tmphdlistfile; if ($supplmedium) { - log::l("read suppl hdlist"); + log::l("read suppl hdlist (via $suppl_method)"); + $supplmedium->{prefix} = $url; #- for install_urpmi $supplmedium->{selected} = 1; + $supplmedium->{method} = $suppl_method; } else { log::l("no suppl hdlist"); } @@ -455,6 +459,7 @@ sub setPackages { } else { $suppl_method = ''; } + useMedium($prev_asked_medium); #- back to main medium } #- open rpm db according to right mode needed. |