diff options
Diffstat (limited to 'lib/Iurt/Chroot.pm')
-rw-r--r-- | lib/Iurt/Chroot.pm | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Iurt/Chroot.pm b/lib/Iurt/Chroot.pm index 1ed50f6..a897d5d 100644 --- a/lib/Iurt/Chroot.pm +++ b/lib/Iurt/Chroot.pm @@ -95,8 +95,7 @@ sub clean_chroot { my $rep = $run->{additional_media}{repository}; if (urpm::is_local_url($rep)) { my $mount_point = "$chroot/urpmi_medias"; - my $url = $rep; - $url =~ s!^file://!!; + my $url = urpm::file_from_local_url($rep); sudo($config, '--mkdir', '-p', $mount_point); if (!sudo($config, '--bindmount', $url, $mount_point)) { plog('ERROR', "Failed to mount $url on $mount_point"); |