state: Default interactive action is Yes

When pressing only <enter> on the question "..continue [Y/n]?" then
lets take that as a "yes"
cute-signatures
Natanael Copa 2009-12-25 07:02:32 +00:00
parent 48802be57f
commit d67ee300b6
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}