diff options
Diffstat (limited to 'main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch')
-rw-r--r-- | main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch b/main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch new file mode 100644 index 000000000..b025a9b78 --- /dev/null +++ b/main/apk-tools/0001-state-Default-interactive-action-is-Yes.patch @@ -0,0 +1,27 @@ +From d67ee300b6cbd9deaaa8c5e506e836e253f7b77d Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Fri, 25 Dec 2009 07:02:32 +0000 +Subject: [PATCH 1/2] state: Default interactive action is Yes + +When pressing only <enter> on the question "..continue [Y/n]?" then +lets take that as a "yes" +--- + src/state.c | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/src/state.c b/src/state.c +index 94afe86..1bd29bf 100644 +--- a/src/state.c ++++ b/src/state.c +@@ -771,7 +771,7 @@ int apk_state_commit(struct apk_state *state, + printf("Do you want to continue [Y/n]? "); + fflush(stdout); + r = fgetc(stdin); +- if (r != 'y' && r != 'Y') ++ if (r != 'y' && r != 'Y' && r != '\n') + return -1; + } + } +-- +1.6.5.7 + |