Ask for changable medium even if the error is not MediaChangeReport::WRONG.
authorJán Kupec <jkupec@suse.cz>
Wed, 13 Jan 2010 13:17:03 +0000 (14:17 +0100)
committerJán Kupec <jkupec@suse.cz>
Wed, 13 Jan 2010 13:17:03 +0000 (14:17 +0100)
- absent this, the medium is not asked for e.g. if not in drive,
  i.e. after a 'no medium found' mount error.

src/callbacks/media.cc

index 0fb2e92..b7a41ee 100644 (file)
@@ -200,13 +200,13 @@ ZmartRecipients::MediaChangeReportReceiver::requestMedia(
 {
   Zypper & zypper = *Zypper::instance();
 
-  DBG << "medium problem, url: " << url.asString() << std::endl;
+  DBG << "medium problem, url: " << url.asString()
+      << ", error " << error
+      << ", label '" << label << "', #" << mediumNr << endl;
 
   zypper.out().error(description);
-  if (is_changeable_media(url) && error == MediaChangeReport::WRONG)
+  if (is_changeable_media(url))
   {
-    //cerr << endl; // may be in the middle of RepoReport or ProgressReport \todo check this
-
     std::string request = boost::str(boost::format(
         // 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)