diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Iurt/Chroot.pm | 3 | ||||
-rw-r--r-- | lib/Iurt/Urpmi.pm | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 526263a..9b465de 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -82,7 +82,8 @@ sub clean_chroot { } my $mount_point = "$chroot/urpmi_medias/$count"; my $bind; - my ($url) = $m =~ s!^(http://|ftp://|file://)!!; + my ($url) = $m; + $url =~ s!^(http://|ftp://|file://)!!; if (($m =~ m/^(file:)/)) { $bind = "-o bind"; } diff --git a/lib/Iurt/Urpmi.pm b/lib/Iurt/Urpmi.pm index f774e48..c004def 100644 --- a/lib/Iurt/Urpmi.pm +++ b/lib/Iurt/Urpmi.pm @@ -112,7 +112,8 @@ sub urpmi_command { my $count = 0; foreach my $m (@{$run->{additional_media}}) { - my ($name) = $m =~ s![/:]!_!g; + my $name = $m; + $name =~ s![/:]!_!g; my $url; if (($m =~ m!^(http:|ftp:)!)) { $url = $m; |