From fbf1aa653984be4a15714a0efe3acf756daf2d57 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Thu, 2 Nov 2006 02:29:10 +0000 Subject: * 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 --- src/pacman/log.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pacman/log.c') 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); } -- cgit v1.2.3