summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-19 10:19:17 +0000
committerRafael Garcia-Suarez <rgarciasuarez@mandriva.org>2004-11-19 10:19:17 +0000
commitfca406165d00e4d86704ec57ee3172fef1b71cb5 (patch)
tree30e0fd9c686e0c0e0150e5f688de0ea81a18e890
parent3f41b1b555368a3864ceb97995d8cd9614f84b4b (diff)
downloadurpmi-fca406165d00e4d86704ec57ee3172fef1b71cb5.tar
urpmi-fca406165d00e4d86704ec57ee3172fef1b71cb5.tar.gz
urpmi-fca406165d00e4d86704ec57ee3172fef1b71cb5.tar.bz2
urpmi-fca406165d00e4d86704ec57ee3172fef1b71cb5.tar.xz
urpmi-fca406165d00e4d86704ec57ee3172fef1b71cb5.zip
Take little terminals into account, too
-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";