From 4f9b601add405529bb30fce55c543623bce4b2e3 Mon Sep 17 00:00:00 2001 From: Rafael Garcia-Suarez Date: Tue, 27 Jul 2004 07:30:36 +0000 Subject: Finish to implement file:// urls where the "file:/" is optional --- urpm/download.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'urpm/download.pm') 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"); -- cgit v1.2.1