Author: mlandres Date: Tue Oct 21 13:26:55 2008 New Revision: 11429 URL: http://svn.opensuse.org/viewcvs/zypp?rev=11429&view=rev Log: fix RepoManager error logging Modified: trunk/libzypp/zypp/RepoManager.cc Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=11429&r1=11428&r2=11429&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Tue Oct 21 13:26:55 2008 @@ -1018,19 +1018,23 @@ else cmd.push_back( rawpath.asString() ); - dumpRangeLine( MIL << "Executing: ", cmd.begin(), cmd.end() ) << endl; ExternalProgram prog( cmd, ExternalProgram::Stderr_To_Stdout ); + std::string errdetail; for ( std::string output( prog.receiveLine() ); output.length(); output = prog.receiveLine() ) { WAR << " " << output; - //cmd << " " << output; + if ( errdetail.empty() ) { + errdetail = prog.command(); + errdetail += '\n'; + } + errdetail += output; } int ret = prog.close(); if ( ret != 0 ) { RepoException ex(str::form("Failed to cache repo (%d).", ret)); - //ex.remember( cmd.str() ); + ex.remember( errdetail ); ZYPP_THROW(ex); } -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org