summaryrefslogtreecommitdiffstats
path: root/perl-install/install/media.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2008-03-05 17:44:07 +0000
committerPascal Rigaux <pixel@mandriva.com>2008-03-05 17:44:07 +0000
commit39949e5ec43a1a5f3bdf5f6de2f1e5e16bc63cfe (patch)
treeee64adfc87f0ee344a071bae15d9274fb9246e1e /perl-install/install/media.pm
parent6c9c74919b7b8c6bbcaca8f64b47406d5e8e3704 (diff)
downloaddrakx-39949e5ec43a1a5f3bdf5f6de2f1e5e16bc63cfe.tar
drakx-39949e5ec43a1a5f3bdf5f6de2f1e5e16bc63cfe.tar.gz
drakx-39949e5ec43a1a5f3bdf5f6de2f1e5e16bc63cfe.tar.bz2
drakx-39949e5ec43a1a5f3bdf5f6de2f1e5e16bc63cfe.tar.xz
drakx-39949e5ec43a1a5f3bdf5f6de2f1e5e16bc63cfe.zip
- restore correct configuration of nfs/hd media in urpmi.cfg
(regression introduced in 10.8)
Diffstat (limited to 'perl-install/install/media.pm')
-rw-r--r--perl-install/install/media.pm6
1 files changed, 4 insertions, 2 deletions
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm
index 7899f6263..cc3f79ee3 100644
--- a/perl-install/install/media.pm
+++ b/perl-install/install/media.pm
@@ -948,9 +948,11 @@ sub install_urpmi {
my $phys_m = $medium->{phys_medium};
if ($phys_m->{method} eq 'ftp' || $phys_m->{method} eq 'http' || $phys_m->{method} eq 'cdrom') {
$dir = $phys_m->{url};
- } elsif ($phys_m->{method} eq 'iso') {
+ } else {
$dir = "$phys_m->{mntpoint}$phys_m->{rel_path}";
- $removable_device = $phys_m->{loopback_device}{mntpoint} . $phys_m->{loopback_file};
+ if ($phys_m->{method} eq 'iso') {
+ $removable_device = $phys_m->{loopback_device}{mntpoint} . $phys_m->{loopback_file};
+ }
}
$dir = MDK::Common::File::concat_symlink($dir, $medium->{rpmsdir});