diff options
Diffstat (limited to 'perl-install/install/media.pm')
-rw-r--r-- | perl-install/install/media.pm | 6 |
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}); |