summaryrefslogtreecommitdiff
path: root/src/pacman/trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/trans.c')
-rw-r--r--src/pacman/trans.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pacman/trans.c b/src/pacman/trans.c
index 1b9295e1..ea6d8cd6 100644
--- a/src/pacman/trans.c
+++ b/src/pacman/trans.c
@@ -295,6 +295,12 @@ void cb_trans_progress(unsigned char event, char *pkgname, int percent, int howm
return;
}
+ if(percent == 0) {
+ set_output_padding(1); /* turn on output padding with ' ' */
+ } else if(percent == 100) {
+ set_output_padding(0); /* shut it off again */
+ }
+
if (!pkgname)
return;
if (percent > 100)