summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2006-11-03 13:34:29 +0000
committerPascal Rigaux <pixel@mandriva.com>2006-11-03 13:34:29 +0000
commit91d1d5e40d3ba242573012a093e8b5cc1e7c5bc4 (patch)
tree4414c5721935b629d82eca700270194e71de0f46 /urpm/download.pm
parentc00ac473861f824abb28efd94645276893868bb6 (diff)
downloadurpmi-91d1d5e40d3ba242573012a093e8b5cc1e7c5bc4.tar
urpmi-91d1d5e40d3ba242573012a093e8b5cc1e7c5bc4.tar.gz
urpmi-91d1d5e40d3ba242573012a093e8b5cc1e7c5bc4.tar.bz2
urpmi-91d1d5e40d3ba242573012a093e8b5cc1e7c5bc4.tar.xz
urpmi-91d1d5e40d3ba242573012a093e8b5cc1e7c5bc4.zip
perl_checker compliance
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 0363f683..1eba2504 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -7,7 +7,7 @@ use urpm::msg;
use urpm::cfg;
use Cwd;
-(our $VERSION) = q$Revision$ =~ /(\d+)/;
+(our $VERSION) = q($Revision$) =~ /(\d+)/;
#- proxy config file.
our $PROXY_CFG = '/etc/urpmi/proxy.cfg';
@@ -480,7 +480,7 @@ sub sync_rsync {
}
our $SSH_PATH;
-sub _init_ssh_path {
+sub _init_ssh_path() {
for (qw(/usr/bin/ssh /bin/ssh)) {
-x $_ and $SSH_PATH = $_;
next;
@@ -557,7 +557,7 @@ END {
for my $socket (glob "$SSH_CONTROL_DIR/ssh-urpmi-$$-*") {
$socket =~ /ssh-urpmi-\d+-([^_]+)_\d+_(.*)$/;
my $server = $1 or next;
- my $login = $2 or next;
+ my $_login = $2 or next;
system("$SSH_PATH -q -f -N -o 'ControlPath $socket' -O exit $2\@$server");
}
}