summaryrefslogtreecommitdiffstats
path: root/urpm/parallel_ssh.pm
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-17 10:11:58 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2005-11-17 10:11:58 +0000
commita808b6fddad0ac1df34a0ac7198644ee5ab98de1 (patch)
tree21cafb58821bfe321928646c940761336434085b /urpm/parallel_ssh.pm
parent476e99a5bf82b9aab2dcf276829faee13e93b97b (diff)
downloadurpmi-a808b6fddad0ac1df34a0ac7198644ee5ab98de1.tar
urpmi-a808b6fddad0ac1df34a0ac7198644ee5ab98de1.tar.gz
urpmi-a808b6fddad0ac1df34a0ac7198644ee5ab98de1.tar.bz2
urpmi-a808b6fddad0ac1df34a0ac7198644ee5ab98de1.tar.xz
urpmi-a808b6fddad0ac1df34a0ac7198644ee5ab98de1.zip
Add VERSION in parallel modules
Diffstat (limited to 'urpm/parallel_ssh.pm')
-rw-r--r--urpm/parallel_ssh.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/urpm/parallel_ssh.pm b/urpm/parallel_ssh.pm
index b95cc3ec..088804c6 100644
--- a/urpm/parallel_ssh.pm
+++ b/urpm/parallel_ssh.pm
@@ -3,6 +3,8 @@ package urpm::parallel_ssh;
use strict;
use Time::HiRes qw(gettimeofday);
+(our $VERSION) = q$Id$ =~ /(\d+\.\d+)/;
+
sub _localhost { $_[0] eq 'localhost' }
sub _nolock { &_localhost ? '--nolock ' : '' }
sub _ssh { &_localhost ? '' : "ssh $_[0] " }
@@ -278,8 +280,10 @@ sub parallel_install {
}
}
-#- allow bootstrap from urpmi code directly (namespace is urpm).
+#- allow to bootstrap from urpmi code directly (namespace is urpm).
+
package urpm;
+
sub handle_parallel_options {
my (undef, $options) = @_;
my ($id, @nodes) = split /:/, $options;