- make (r)etry (c)ancel answer case-insensitive (#307122)
authorKlaus Kaempf <kkaempf@suse.de>
Mon, 3 Sep 2007 10:35:11 +0000 (10:35 +0000)
committerKlaus Kaempf <kkaempf@suse.de>
Mon, 3 Sep 2007 10:35:11 +0000 (10:35 +0000)
package/zypper.changes
src/zypper-misc.cc

index c72241b..e79f1a6 100644 (file)
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Sep  3 12:34:35 CEST 2007 - kkaempf@suse.de
+
+- make (r)etry (c)ancel answer case-insensitive (#307122)
+
+-------------------------------------------------------------------
 Fri Aug 31 14:35:01 CEST 2007 - jkupec@suse.cz
 
 - fixed error message of zypper ar -r (#306667)
index 42fadac..cdbdcc2 100644 (file)
@@ -1,5 +1,6 @@
 #include <fstream>
 #include <sstream>
+#include <ctype.h>
 #include <boost/format.hpp>
 #include <boost/logic/tribool_io.hpp>
 
@@ -453,6 +454,9 @@ tribool show_problem (const ResolverProblem & prob, ProblemSolutionList & todo)
       cerr_v << "cin: " << cin.rdstate() << endl;
       return false;
     }
+    if (isupper( reply_s[0] ))
+      reply_s[0] = tolower( reply_s[0] );
+
     // translators: corresponds to (r)etry
     if (reply_s == _("r"))
       return true;