Author: jkupec Date: Mon May 12 17:06:32 2008 New Revision: 10046 URL: http://svn.opensuse.org/viewcvs/zypp?rev=10046&view=rev Log: - show rpm remove error reason (bnc #388810) Modified: trunk/zypper/src/zypper-rpm-callbacks.h Modified: trunk/zypper/src/zypper-rpm-callbacks.h URL: http://svn.opensuse.org/viewcvs/zypp/trunk/zypper/src/zypper-rpm-callbacks.h?rev=10046&r1=10045&r2=10046&view=diff ============================================================================== --- trunk/zypper/src/zypper-rpm-callbacks.h (original) +++ trunk/zypper/src/zypper-rpm-callbacks.h Mon May 12 17:06:32 2008 @@ -184,14 +184,11 @@ virtual void finish( zypp::Resolvable::constPtr /*resolvable*/, Error error, const std::string & reason ) { - // the error should have been reported in problem() but it isn't! (bnc #388810) - Zypper::instance()->out().progressEnd("remove-resolvable", _label, error != NO_ERROR); if (error != NO_ERROR) - { - // set proper exit code - Zypper::instance()->out().error(zcb_error2str(error, reason)); + // set proper exit code, don't write to output, the error should have been reported in problem() Zypper::instance()->setExitCode(ZYPPER_EXIT_ERR_ZYPP); - } + else + Zypper::instance()->out().progressEnd("remove-resolvable", _label); } }; -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org