diff options
author | Thierry Vignaud <tv@mandriva.org> | 2009-03-09 11:22:17 +0000 |
---|---|---|
committer | Thierry Vignaud <tv@mandriva.org> | 2009-03-09 11:22:17 +0000 |
commit | 0da877b7b3fb540a9963783ba132a3b94d1af6f2 (patch) | |
tree | 0169327d689900391251b6d6551248a18082601e /perl-install | |
parent | bda1a4b6aadf9fa1eba91a5ff8893a72d6218ef6 (diff) | |
download | drakx-0da877b7b3fb540a9963783ba132a3b94d1af6f2.tar drakx-0da877b7b3fb540a9963783ba132a3b94d1af6f2.tar.gz drakx-0da877b7b3fb540a9963783ba132a3b94d1af6f2.tar.bz2 drakx-0da877b7b3fb540a9963783ba132a3b94d1af6f2.tar.xz drakx-0da877b7b3fb540a9963783ba132a3b94d1af6f2.zip |
(get_media) keep physical medium around (needed for next commit)
Diffstat (limited to 'perl-install')
-rw-r--r-- | perl-install/install/media.pm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm index 310365a03..fe43c049a 100644 --- a/perl-install/install/media.pm +++ b/perl-install/install/media.pm @@ -494,10 +494,10 @@ sub select_only_some_media { sub get_media { my ($o, $media, $packages) = @_; - my ($suppl_CDs, $copy_rpms_on_disk); + my ($suppl_CDs, $copy_rpms_on_disk, $phys_m); foreach (@$media) { if ($_->{type} eq 'media_cfg') { - my $phys_m = url2mounted_phys_medium($o, $_->{url}, 'media_info'); + $phys_m = url2mounted_phys_medium($o, $_->{url}, 'media_info'); my $uri = $o->{stage2_phys_medium}{url} =~ m!^(http|ftp)://! && $o->{stage2_phys_medium}{url} || $phys_m->{method} =~ m!^(ftp|http)://! && $phys_m->{method} || $phys_m->{real_mntpoint} || $phys_m->{url}; @@ -515,13 +515,13 @@ sub get_media { } ($suppl_CDs, $copy_rpms_on_disk) = eval { _get_media_cfg_options($o, $phys_m) }; } elsif ($_->{type} eq 'media') { - my $phys_m = url2mounted_phys_medium($o, $_->{url}); + $phys_m = url2mounted_phys_medium($o, $_->{url}); get_standalone_medium($o, $phys_m, $packages, { name => $_->{id} =~ /media=(.*)/ && $1 }); } elsif ($_->{type} eq 'media_cfg_isos') { my ($dir_url, $iso, $rel_path) = $_->{url} =~ m!(.*)/(.*\.iso):(/.*)! or die "bad media_cfg_isos url $_->{url}"; my $dir_medium = url2mounted_phys_medium($o, $dir_url); $dir_medium->{options} =~ s/\bnoauto\b,?//; - my $phys_m = _iso_phys_media($dir_medium, $iso, $rel_path); + $phys_m = _iso_phys_media($dir_medium, $iso, $rel_path); push @{$o->{all_hds}{loopbacks}}, $phys_m; ($suppl_CDs, $copy_rpms_on_disk) = get_media_cfg($o, $phys_m, $packages, $_->{selected_names}, $_->{force_rpmsrate}); } else { |