diff options
author | Olivier Thauvin <nanardon@mandriva.org> | 2004-05-04 10:31:54 +0000 |
---|---|---|
committer | Olivier Thauvin <nanardon@mandriva.org> | 2004-05-04 10:31:54 +0000 |
commit | ff91a032715625780578526caa8d4eccc46e50d6 (patch) | |
tree | 87bb8c5ae8d2e95bbe00da97451c746dd5a3950f /urpm/download.pm | |
parent | 3573c52aef6afb726909bd5ee24483cc60cf87a2 (diff) | |
download | urpmi-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/download.pm')
-rw-r--r-- | urpm/download.pm | 2 |
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); |