summaryrefslogtreecommitdiff
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-01 18:20:13 +0000
committerAurelien Foret <aurelien@archlinux.org>2006-02-01 18:20:13 +0000
commitcdc97dd6f2731020604fbc8cd3322d5127cdd666 (patch)
treec8e6751a4a616beffc984936f16ec435d8b98cde /src/pacman/pacman.c
parentde3a0f164c303371a2ac8813ebeec10025b27e2a (diff)
added line feeds when needed (patch from VMiklos <vmiklos@frugalware.org>)
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c
index 715b3244..7738a280 100644
--- a/src/pacman/pacman.c
+++ b/src/pacman/pacman.c
@@ -59,6 +59,8 @@ list_t *pm_targets = NULL;
int maxcols = 80;
+extern int neednl;
+
int main(int argc, char *argv[])
{
int ret = 0;
@@ -246,6 +248,9 @@ void cleanup(int signum)
muntrace();
#endif
+ if(neednl) {
+ putchar('\n');
+ }
fflush(stdout);
exit(signum);