summaryrefslogtreecommitdiffstats
path: root/src/pacman/log.c
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2006-11-02 03:29:10 +0100
committerAaron Griffin <aaron@archlinux.org>2006-11-02 03:29:10 +0100
commitfbf1aa653984be4a15714a0efe3acf756daf2d57 (patch)
treeda4f9d026482393f281c627e30e95a740fa48398 /src/pacman/log.c
parent22ce4a2a006d652219e688c6f082a65366051f71 (diff)
downloadpacman-fbf1aa653984be4a15714a0efe3acf756daf2d57.tar.gz
pacman-fbf1aa653984be4a15714a0efe3acf756daf2d57.tar.xz
* Fixed some alpm_get_option calls (long params were used for C99 compliance,
but were used in error) * Cleaned up some output newlines * Added "local database is up to date" when no packages are upgraded
Diffstat (limited to 'src/pacman/log.c')
-rw-r--r--src/pacman/log.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pacman/log.c b/src/pacman/log.c
index 01a9a143..17d6965a 100644
--- a/src/pacman/log.c
+++ b/src/pacman/log.c
@@ -164,6 +164,9 @@ int yesno(char *fmt, ...)
*++pch = 0;
strtrim(response);
+ /* User hits 'enter', forcing a newline here */
+ neednl = 0;
+
if(!strcasecmp(response, _("Y")) || !strcasecmp(response, _("YES")) || !strlen(response)) {
return(1);
}