summaryrefslogtreecommitdiffstats
path: root/urpm
diff options
context:
space:
mode:
authorOlivier Blin <dev@blino.org>2013-10-15 00:01:35 +0200
committerOlivier Blin <dev@blino.org>2013-10-15 00:01:35 +0200
commitb9e13ee4d72156bf00cd48a8be4a58281842fcaf (patch)
tree23c243e831c1bb9ba4af6d5146ec5ef98ca8bb0e /urpm
parenta4eccdec35b234a4cec448635204615d1043ad31 (diff)
downloadurpmi-b9e13ee4d72156bf00cd48a8be4a58281842fcaf.tar
urpmi-b9e13ee4d72156bf00cd48a8be4a58281842fcaf.tar.gz
urpmi-b9e13ee4d72156bf00cd48a8be4a58281842fcaf.tar.bz2
urpmi-b9e13ee4d72156bf00cd48a8be4a58281842fcaf.tar.xz
urpmi-b9e13ee4d72156bf00cd48a8be4a58281842fcaf.zip
download: fix parsing download progress with rsync >= 3.10
rsync 3.10 now defaults to human readable output, with sizes being printed with a separator between group of 3 digits. This broke our download progress parser. We can fix this by using the --no-human-readable command line option, to get the old rsync progress output format. This option already existed in older rsync versions (tried in Mageia 2), so this change should be safe to include in backports of urpmi to older distributions.
Diffstat (limited to 'urpm')
-rw-r--r--urpm/download.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index 8284e81a..31a88264 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -586,7 +586,7 @@ sub sync_rsync {
my $buf = '';
my $cmd = join(" ", "/usr/bin/rsync",
($limit_rate ? "--bwlimit=$limit_rate" : @{[]}),
- ($options->{quiet} ? qw(-q) : qw(--progress -v)),
+ ($options->{quiet} ? qw(-q) : qw(--progress -v --no-human-readable)),
($options->{compress} ? qw(-z) : @{[]}),
($options->{ssh} ? qq(-e $options->{ssh}) :
("--timeout=$CONNECT_TIMEOUT",