From: Michael Andres Date: Mon, 2 Sep 2013 14:30:24 +0000 (+0200) Subject: Fix legacy reporting of obsolete rpm levels. X-Git-Tag: upstream/1.11.11~158 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3b2cd9ed7421b2dcc5a3acbc445a3fd8d35c5f64;p=platform%2Fupstream%2Fzypper.git Fix legacy reporting of obsolete rpm levels. --- diff --git a/src/callbacks/rpm.h b/src/callbacks/rpm.h index 00b5dc6..a20d3dd 100644 --- a/src/callbacks/rpm.h +++ b/src/callbacks/rpm.h @@ -183,17 +183,6 @@ struct RemoveResolvableReportReceiver : public zypp::callback::ReceiveReport @@ -228,33 +217,19 @@ struct InstallResolvableReportReceiver : public zypp::callback::ReceiveReportout().progressEnd("install-resolvable", _label, true); std::ostringstream s; s << boost::format(_("Installation of %s-%s failed:")) % resolvable->name() % resolvable->edition() << std::endl; - s << level << " " << zcb_error2str(error, description); + s << zcb_error2str(error, description); Zypper::instance()->out().error(s.str()); return (Action) read_action_ari (PROMPT_ARI_RPM_INSTALL_PROBLEM, ABORT); } - virtual void finish( zypp::Resolvable::constPtr /*resolvable*/, Error error, const std::string & reason, RpmLevel level ) + virtual void finish( zypp::Resolvable::constPtr /*resolvable*/, Error error, const std::string & reason, RpmLevel /*unused*/ ) { - if (error != NO_ERROR && level < RPM_NODEPS_FORCE) - { - DBG << "level < RPM_NODEPS_FORCE: aborting without displaying an error" - << std::endl; - return; - } - if (error != NO_ERROR) // don't write to output, the error should have been reported in problem() (bnc #381203) Zypper::instance()->setExitCode(ZYPPER_EXIT_ERR_ZYPP);