summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-10-15 21:06:08 +0000
committerAaron Griffin <aaron@archlinux.org>2006-10-15 21:06:08 +0000
commitdb769f667d93d9127b570570564589337c793fbe (patch)
tree94f90c61fcf2e988f2a718b06925e0df20a29332 /src
parente037328e219697f8453dc25df2b8f0d25bbc1acc (diff)
downloadpacman-db769f667d93d9127b570570564589337c793fbe.tar.xz
Added alpm function docs along
pacman.c : Removed link to frugalware wiki sync.c : do not display Uncompressed size if 0 (archlinux has no USIZE)
Diffstat (limited to 'src')
-rw-r--r--src/pacman/pacman.c3
-rw-r--r--src/pacman/sync.c6
2 files changed, 5 insertions, 4 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 69504d43..16e1b432 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -186,8 +186,7 @@ static void cleanup(int signum)
if(signum==SIGSEGV)
{
fprintf(stderr, "Internal pacman error: Segmentation fault\n"
- "Please submit a full bug report, with the given package if appropriate.\n"
- "See <URL:http://wiki.frugalware.org/Bugs> for instructions.\n");
+ "Please submit a full bug report, with the given package if appropriate.\n");
exit(signum);
} else if((signum == SIGINT) && (alpm_trans_release() == -1) && (pm_errno ==
PM_ERR_TRANS_COMMITING)) {
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);