aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Iurt/Chroot.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r--lib/Iurt/Chroot.pm3
1 files changed, 2 insertions, 1 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";
}