summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorOlivier Thauvin <nanardon@mandriva.org>2004-05-04 10:31:54 +0000
committerOlivier Thauvin <nanardon@mandriva.org>2004-05-04 10:31:54 +0000
commitff91a032715625780578526caa8d4eccc46e50d6 (patch)
tree87bb8c5ae8d2e95bbe00da97451c746dd5a3950f /urpm
parent3573c52aef6afb726909bd5ee24483cc60cf87a2 (diff)
downloadurpmi-ff91a032715625780578526caa8d4eccc46e50d6.tar
urpmi-ff91a032715625780578526caa8d4eccc46e50d6.tar.gz
urpmi-ff91a032715625780578526caa8d4eccc46e50d6.tar.bz2
urpmi-ff91a032715625780578526caa8d4eccc46e50d6.tar.xz
urpmi-ff91a032715625780578526caa8d4eccc46e50d6.zip
- allow rsync url like rsync://server/dir/
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index dd6958f9..f28afe46 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -292,7 +292,7 @@ sub sync_rsync {
foreach (@_) {
my $count = 10; #- retry count on error (if file exists).
my $basename = basename($_);
- my ($file) = m/::/ ? (m|^rsync://(.*)|) : ($_);
+ my ($file) = m!^rsync://[^\/]*::! ? (m|^rsync://(.*)|) : ($_);
#my ($file) = m|^rsync://(.*)| or next;
#$file =~ /::/ or $file = $_;
propagate_sync_callback($options, 'start', $file);