summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-12-25 07:02:32 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-12-25 07:17:06 +0000
commitd67ee300b6cbd9deaaa8c5e506e836e253f7b77d (patch)
treea7e2b0db7d68c2b171fb5eb08b3e8b957e400596 /src
parent48802be57faf6b59a09db1369cf18918698286a8 (diff)
downloadapk-tools-d67ee300b6cbd9deaaa8c5e506e836e253f7b77d.tar.gz
apk-tools-d67ee300b6cbd9deaaa8c5e506e836e253f7b77d.tar.bz2
apk-tools-d67ee300b6cbd9deaaa8c5e506e836e253f7b77d.tar.xz
apk-tools-d67ee300b6cbd9deaaa8c5e506e836e253f7b77d.zip
state: Default interactive action is Yes
When pressing only <enter> on the question "..continue [Y/n]?" then lets take that as a "yes"
Diffstat (limited to 'src')
-rw-r--r--src/state.c2
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;
}
}