Mailinglist Archive: zypp-commit (325 mails)

< Previous Next >
[zypp-commit] r7077 - in /trunk/zypper: package/zypper.changes src/zypper-misc.cc
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Mon, 03 Sep 2007 10:35:12 -0000
  • Message-id: <20070903103512.3BBFB24FB2@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Mon Sep  3 12:35:11 2007
New Revision: 7077

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7077&view=rev
Log:
- make (r)etry (c)ancel answer case-insensitive (#307122)

Modified:
    trunk/zypper/package/zypper.changes
    trunk/zypper/src/zypper-misc.cc

Modified: trunk/zypper/package/zypper.changes
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/package/zypper.changes?rev=7077&r1=7076&r2=7077&view=diff
==============================================================================
--- trunk/zypper/package/zypper.changes (original)
+++ trunk/zypper/package/zypper.changes Mon Sep  3 12:35:11 2007
@@ -1,4 +1,9 @@
 -------------------------------------------------------------------
+Mon Sep  3 12:34:35 CEST 2007 - kkaempf@xxxxxxx
+
+- make (r)etry (c)ancel answer case-insensitive (#307122)
+
+-------------------------------------------------------------------
 Fri Aug 31 14:35:01 CEST 2007 - jkupec@xxxxxxx
 
 - fixed error message of zypper ar -r (#306667)

Modified: trunk/zypper/src/zypper-misc.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-misc.cc?rev=7077&r1=7076&r2=7077&view=diff
==============================================================================
--- trunk/zypper/src/zypper-misc.cc (original)
+++ trunk/zypper/src/zypper-misc.cc Mon Sep  3 12:35:11 2007
@@ -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 @@
       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;

--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages