Sophie

Sophie

distrib > Mandriva > 10.0-com > i586 > by-pkgid > 2e912f255c7a2e0bcc9d503091dda0f7 > files > 1

urpmi-4.4.5-10.2.100mdk.src.rpm

--- urpm.pm.orig	2004-08-31 03:51:54.567037832 -0400
+++ urpm.pm	2004-08-31 03:58:18.592657064 -0400
@@ -249,6 +249,11 @@ sub sync_curl {
     chdir(ref($options) ? $options->{dir} : $options);
     my (@ftp_files, @other_files);
     foreach (@_) {
+	my ($proto, $nick, $rest) = m,^(http|ftp)://([^:/]+):(.*),,;
+	if ($nick) { #- escape @ in user names
+	    $nick =~ s/@/%40/;
+	    $_ = "$proto://$nick:$rest";
+	}
 	m|^ftp://.*/([^/]*)$| && -s $1 > 8192 and do { push @ftp_files, $_; next }; #- manage time stamp for large file only.
 	push @other_files, $_;
     }