summaryrefslogtreecommitdiffstats
path: root/src/pacman/log.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-02-09 17:02:01 +0100
committerAaron Griffin <aaron@archlinux.org>2007-02-09 17:02:01 +0100
commitd8fd645c4c5aff5042da158d2471a2f72c443aad (patch)
tree6f8a76f1afcc3e4c8ce7ee0ca3ceb739b00fd361 /src/pacman/log.c
parent4e0b649c3af6deeb6fcf765deaa3dc9b2f68452d (diff)
downloadpacman-d8fd645c4c5aff5042da158d2471a2f72c443aad.tar.gz
pacman-d8fd645c4c5aff5042da158d2471a2f72c443aad.tar.xz
* Cleaned up direct pm_fprintf usage (move to MSG/ERR macros for now)
* Moved some stderr output to stdout * Remove "RETRIEVE_LOCAL" trans event as libdownload handles local files
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r--src/pacman/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c
index 4bed22ae..e33001b3 100644
--- a/src/pacman/log.c
+++ b/src/pacman/log.c
@@ -173,7 +173,9 @@ int yesno(char *fmt, ...)
va_start(args, fmt);
vsnprintf(str, LOG_STR_LEN, fmt, args);
va_end(args);
- pm_fprintf(stderr, NL, str);
+
+ /* Use stderr so questions are always displayed when redirecting output */
+ ERR(NL, str);
if(fgets(response, 32, stdin)) {
/* trim whitespace and newlines */