summaryrefslogtreecommitdiff
path: root/src/state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/state.c b/src/state.c
index f539b3b..16acfba 100644
--- a/src/state.c
+++ b/src/state.c
@@ -667,7 +667,7 @@ int apk_state_commit(struct apk_state *state,
}
size_diff /= 1024;
- if (apk_verbosity > 1) {
+ if (apk_verbosity > 1 || (apk_flags & APK_INTERACTIVE)) {
r = dump_packages(state, cmp_remove,
"The following packages will be REMOVED");
r += dump_packages(state, cmp_downgrade,
@@ -681,6 +681,8 @@ int apk_state_commit(struct apk_state *state,
(size_diff < 0) ?
"disk space will be freed" :
"additional disk space will be used");
+ }
+ if (apk_flags & APK_INTERACTIVE) {
fprintf(stderr, "Do you want to continue [Y/n]? ");
fflush(stderr);
r = fgetc(stdin);