summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2007-08-30 16:40:32 +0000
committerPascal Rigaux <pixel@mandriva.com>2007-08-30 16:40:32 +0000
commit161317e8bd5136fe5f9faa874113f28b8e529c8e (patch)
tree27e6d5356016d21353db12b1e86ca93d19195e14
parent514d59589b3e6ada25bd4a6ca43c61e169ae9e2a (diff)
downloadurpmi-161317e8bd5136fe5f9faa874113f28b8e529c8e.tar
urpmi-161317e8bd5136fe5f9faa874113f28b8e529c8e.tar.gz
urpmi-161317e8bd5136fe5f9faa874113f28b8e529c8e.tar.bz2
urpmi-161317e8bd5136fe5f9faa874113f28b8e529c8e.tar.xz
urpmi-161317e8bd5136fe5f9faa874113f28b8e529c8e.zip
make it more robust when no password is found in urpmi's netrc
-rw-r--r--urpm/media.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/media.pm b/urpm/media.pm
index d0cbb3b7..ae4c9154 100644
--- a/urpm/media.pm
+++ b/urpm/media.pm
@@ -66,7 +66,7 @@ sub read_config_add_passwords {
if (my ($e) = grep { ($_->{default} || $_->{machine} eq $u->{machine}) && $_->{login} eq $u->{login} } @netrc) {
$_->{url} = sprintf('%s://%s:%s@%s%s', $u->{proto}, $u->{login}, $e->{password}, $u->{machine}, $u->{dir});
} else {
- $urpm->{log}("no password found for $u->{login}@$u->{machine}");
+ $urpm->{log}(sprintf('no password found for %s@%s', $u->{login}, $u->{machine}));
}
}
}