summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Whitaker <mageia@martin-whitaker.me.uk>2015-05-25 05:33:37 -0400
committerThierry Vignaud <thierry.vignaud@gmail.com>2015-05-25 17:04:25 +0200
commitd269fc99ca5de9df10c673c00c5d28063340b848 (patch)
tree53b5e9c9b4ced08ae175377cff38103da63a76f8
parent0522d5c3825ca72af084c64f0b96377dbc5f28fd (diff)
downloaddrakx-d269fc99ca5de9df10c673c00c5d28063340b848.tar
drakx-d269fc99ca5de9df10c673c00c5d28063340b848.tar.gz
drakx-d269fc99ca5de9df10c673c00c5d28063340b848.tar.bz2
drakx-d269fc99ca5de9df10c673c00c5d28063340b848.tar.xz
drakx-d269fc99ca5de9df10c673c00c5d28063340b848.zip
fix urpmi media for USB install (mga#5690)
v2: (tv) handle both cases
-rw-r--r--perl-install/install/NEWS1
-rw-r--r--perl-install/install/media.pm4
2 files changed, 3 insertions, 2 deletions
diff --git a/perl-install/install/NEWS b/perl-install/install/NEWS
index 5cff2c468..f303dad92 100644
--- a/perl-install/install/NEWS
+++ b/perl-install/install/NEWS
@@ -1,5 +1,6 @@
- die is not an option here (mga#8819)
o just log the faillure and offer to either retry or abort
+- fix urpmi media when installing from USB (mga#5690)
- locale setting
o fix reading back IM config (mga#15761)
- partitioning:
diff --git a/perl-install/install/media.pm b/perl-install/install/media.pm
index 9d75ea24f..d6d30219d 100644
--- a/perl-install/install/media.pm
+++ b/perl-install/install/media.pm
@@ -532,8 +532,8 @@ sub adjust_paths_in_urpmi_cfg {
$medium->{url} =~ s!^.*?/media/!$phys_m->{url}/!;
} elsif (member($phys_m->{method}, qw(disk nfs))) {
# use the real mount point:
- if ($medium->{url} =~ m!/tmp/image!) {
- $medium->{url} =~ s!/tmp/image!$phys_m->{mntpoint}!;
+ if ($medium->{url} =~ m!/tmp/image(/media)?!) {
+ $medium->{url} =~ s!/tmp/image(/media).!$phys_m->{mntpoint}$phys_m->{rel_path}!;
} else {
# just remove $::prefix and we already have the real mount point:
$medium->{url} =~ s!^$::prefix!!;