From ef53dd52c54e1b8ff52a5bd2373f31c1709cbbee Mon Sep 17 00:00:00 2001 From: Timo Teräs Date: Tue, 28 Feb 2012 11:32:26 +0200 Subject: solver: ask confirmation in interactive mode only if there's changes --- src/solver.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/solver.c b/src/solver.c index a20b25b..b50380b 100644 --- a/src/solver.c +++ b/src/solver.c @@ -1867,7 +1867,8 @@ int apk_solver_commit_changeset(struct apk_database *db, "disk space will be freed." : "additional disk space will be used."); } - if (apk_flags & APK_INTERACTIVE) { + if (changeset->changes->num > 0 && + (apk_flags & APK_INTERACTIVE)) { printf("Do you want to continue [Y/n]? "); fflush(stdout); r = fgetc(stdin); -- cgit v1.2.3-70-g09d2