[zypp-commit] r7006 - /trunk/zypper/src/zypper-media-callbacks.h
Author: jkupec
Date: Thu Aug 30 13:26:15 2007
New Revision: 7006
URL: http://svn.opensuse.org/viewcvs/zypp?rev=7006&view=rev
Log:
- display 'insert media' prompt only for WRONG media error for now
Modified:
trunk/zypper/src/zypper-media-callbacks.h
Modified: trunk/zypper/src/zypper-media-callbacks.h
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-media-callbacks.h?rev=7006&r1=7005&r2=7006&view=diff
==============================================================================
--- trunk/zypper/src/zypper-media-callbacks.h (original)
+++ trunk/zypper/src/zypper-media-callbacks.h Thu Aug 30 13:26:15 2007
@@ -41,19 +41,28 @@
MediaChangeReport::Error error,
const std::string & description )
{
- cerr << description << endl;
- // TranslatorExplanation translate letters 'y' and 'n' the same as you translated the [y/n] prompt.
- std::string request = boost::str(boost::format(
- _("Please insert media [%s] # %d and type 'y' to continue or 'n' to cancel the operation."))
- % repo.info().name() % mediumNr);
- if (read_bool_answer(request, false))
- return MediaChangeReport::RETRY;
+ if (error == MediaChangeReport::WRONG)
+ {
+ // TranslatorExplanation translate letters 'y' and 'n' to whathever is appropriate for your language.
+ // Try to check what answers does zypper accept (it always accepts y/n at least)
+ // You can also have a look at the regular expressions used to check the answer here:
+ // /usr/lib/locale/
participants (1)
-
jkupec@svn.opensuse.org