diff --git a/DistUpgrade/DistUpgradeViewText.py b/DistUpgrade/DistUpgradeViewText.py index 2813cd79..166df087 100644 --- a/DistUpgrade/DistUpgradeViewText.py +++ b/DistUpgrade/DistUpgradeViewText.py @@ -27,6 +27,8 @@ from gettext import dgettext import apt import os +import re +import string from .DistUpgradeApport import run_apport, apport_crash @@ -216,13 +218,13 @@ class DistUpgradeViewText(DistUpgradeView): while True: res = readline().strip().lower() # TRANSLATORS: the "y" is "yes" - if res.startswith(_("y")): + if res.startswith(_("y")) or (not re.match(_("y"), string.ascii_lowercase) and res.startswith("y")): return True # TRANSLATORS: the "n" is "no" - elif not res or res.startswith(_("n")): + elif not res or res.startswith(_("n")) or (not re.match(_("n"), string.ascii_lowercase) and res.startswith("n")): return False # TRANSLATORS: the "d" is "details" - elif res.startswith(_("d")): + elif res.startswith(_("d")) or (not re.match(_("d"), string.ascii_lowercase) and res.startswith("d")): output = "" if len(self.demotions) > 0: output += "\n"