summaryrefslogtreecommitdiffstats
path: root/urpm/download.pm
diff options
context:
space:
mode:
Diffstat (limited to 'urpm/download.pm')
-rw-r--r--urpm/download.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/urpm/download.pm b/urpm/download.pm
index f7653f5e..a9a309ed 100644
--- a/urpm/download.pm
+++ b/urpm/download.pm
@@ -441,6 +441,7 @@ sub sync_logger {
} else {
$text = N(" %s%% completed, speed = %s", $percent, $speed);
}
+ if (length($text) > $wchar) { $text = substr($text, 0, $wchar) }
print STDERR $text, " " x ($wchar - length($text)), "\r";
} elsif ($mode eq 'end') {
print STDERR " " x $wchar, "\r";