summaryrefslogtreecommitdiffstats
path: root/src/pacman/sync.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/sync.c')
-rw-r--r--src/pacman/sync.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/pacman/sync.c b/src/pacman/sync.c
index e77c9eab..e3262c28 100644
--- a/src/pacman/sync.c
+++ b/src/pacman/sync.c
@@ -615,14 +615,16 @@ int pacman_sync(list_t *targets)
if(mb < 0.1) {
mb = 0.1;
}
- if(umb < 0.1) {
+ if(umb > 0 && umb < 0.1) {
umb = 0.1;
}
MSG(NL, _("\nTargets: "));
str = buildstring(list_install);
indentprint(str, 9);
MSG(NL, _("\nTotal Package Size: %.1f MB\n"), mb);
- MSG(NL, _("\nTotal Uncompressed Package Size: %.1f MB\n"), umb);
+ if(umb > 0) {
+ MSG(NL, _("\nTotal Uncompressed Package Size: %.1f MB\n"), umb);
+ }
FREELIST(list_install);
FREE(str);