summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 1520bdda..d5ad44f1 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -155,7 +155,7 @@ sub propagate_sync_callback {
sub sync_file {
my $options = shift;
foreach (@_) {
- my ($in) = m!^(?:removable[^:]*|file):/(.*)!;
+ my ($in) = m!^(?:removable[^:]*:/|file:/)(/.*)!;
propagate_sync_callback($options, 'start', $_);
system("cp", "-p", "-R", $in || $_, ref($options) ? $options->{dir} : $options)
and die N("copy failed");