summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-09-10 08:26:09 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-09-10 08:26:09 +0000
commit1bfb0aff7a80c8476f999cd8a0d83edb80baf10e (patch)
treee3c40d59ce03eb6f8a0b76c20681c12486992bfc /urpm/download.pm
parentcef435e78585d423f7fdf87d5333c85c32e22557 (diff)
downloadurpmi-1bfb0aff7a80c8476f999cd8a0d83edb80baf10e.tar
urpmi-1bfb0aff7a80c8476f999cd8a0d83edb80baf10e.tar.gz
urpmi-1bfb0aff7a80c8476f999cd8a0d83edb80baf10e.tar.bz2
urpmi-1bfb0aff7a80c8476f999cd8a0d83edb80baf10e.tar.xz
urpmi-1bfb0aff7a80c8476f999cd8a0d83edb80baf10e.zip
do not use netrc for protocol ssh
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 25de2046..9b2c464d 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -628,7 +628,7 @@ sub requested_ftp_http_downloader {
sub parse_url_with_login {
my ($url) = @_;
- $url =~ m!([^:]*)://([^/:\@]*)(:([^/:\@]*))?\@([^/]*)(.*)! &&
+ $url =~ m!([^:]*)://([^/:\@]*)(:([^/:\@]*))?\@([^/]*)(.*)! && $1 ne 'ssh' &&
{ proto => $1, login => $2, password => $4, machine => $5, dir => $6 };
}
sub url_obscuring_password {