[jhbuild] [terminal] force both entered and translated strings to be lowercase



commit 82c3958b8abfb201b3320da6cb9b5f3fafebb7a6
Author: Frédéric Péters <fpeters 0d be>
Date:   Sat Aug 22 21:04:10 2009 +0200

    [terminal] force both entered and translated strings to be lowercase

 jhbuild/frontends/terminal.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/jhbuild/frontends/terminal.py b/jhbuild/frontends/terminal.py
index abf293f..fb719f0 100644
--- a/jhbuild/frontends/terminal.py
+++ b/jhbuild/frontends/terminal.py
@@ -328,7 +328,7 @@ class TerminalBuildScript(buildscript.BuildScript):
                 if needs_confirmation:
                     val = raw_input(uencode(_('Type "yes" to confirm the action: ')))
                     val = val.strip()
-                    if val.lower() in ('yes', _('Yes')):
+                    if val.lower() in ('yes', _('yes').lower()):
                         return selected_phase
                     continue
                 return selected_phase



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]