Accept "yes" or "no" as fallback in case the question
has not been translated.
[kzak@redhat.com: note that rpmatch(3) looks at only the first
character of response, but we need have to
check the full yes/no string.]
Signed-off-by: Matthias Koenig <mkoenig@suse.de>
clear_warning();
if (len == GS_ESCAPE)
return;
- else if (strcasecmp(response, _("no")) == 0) {
+ else if (strcasecmp(response, _("no")) == 0 ||
+ strcasecmp(response, "no") == 0) {
print_warning(_("Did not write partition table to disk"));
return;
- } else if (strcasecmp(response, _("yes")) == 0)
+ } else if (strcasecmp(response, _("yes")) == 0 ||
+ strcasecmp(response, "yes") == 0)
done = TRUE;
else
print_warning(_("Please enter `yes' or `no'"));