Author: dmacvicar Date: Tue Feb 19 13:17:13 2008 New Revision: 8803 URL: http://svn.opensuse.org/viewcvs/zypp?rev=8803&view=rev Log: error message Modified: trunk/libzypp/zypp/Fetcher.cc trunk/libzypp/zypp/RepoManager.cc Modified: trunk/libzypp/zypp/Fetcher.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/Fetcher.cc?rev=8803&r1=8802&r2=8803&view=diff ============================================================================== --- trunk/libzypp/zypp/Fetcher.cc (original) +++ trunk/libzypp/zypp/Fetcher.cc Tue Feb 19 13:17:13 2008 @@ -148,7 +148,7 @@ if ( PathInfo( cached_file ).isExist() ) { - MIL << "File '" << cached_file << "' exist, testing checksum " << (*it_res)->location.checksum() << endl; + DBG << "File '" << cached_file << "' exist, testing checksum " << (*it_res)->location.checksum() << endl; // check the checksum if ( is_checksum( cached_file, (*it_res)->location.checksum() ) && (! (*it_res)->location.checksum().empty() ) ) Modified: trunk/libzypp/zypp/RepoManager.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/RepoManager.cc?rev=8803&r1=8802&r2=8803&view=diff ============================================================================== --- trunk/libzypp/zypp/RepoManager.cc (original) +++ trunk/libzypp/zypp/RepoManager.cc Tue Feb 19 13:17:13 2008 @@ -744,14 +744,16 @@ // Take care we unlink the solvfile on exception ManagedFile guard( solvfile, filesystem::unlink ); + stringstream outputstr; string cmd( str::form( "repo2solv.sh \"%s\" > \"%s\"", rawpath.c_str(), solvfile.c_str() ) ); ExternalProgram prog( cmd, ExternalProgram::Stderr_To_Stdout ); for ( string output( prog.receiveLine() ); output.length(); output = prog.receiveLine() ) { MIL << " " << output; + outputstr << output; } int ret = prog.close(); if ( ret != 0 ) - ZYPP_THROW(RepoUnknownTypeException()); + ZYPP_THROW(RepoUnknownTypeException("Error when creating repository cache: '" + outputstr.str() + "'")); // We keep it. guard.resetDispose(); -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org