summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/solver.c3
1 files changed, 2 insertions, 1 deletions
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);