Author: aschnell Date: Wed Aug 22 17:16:09 2007 New Revision: 6817 URL: http://svn.opensuse.org/viewcvs/zypp?rev=6817&view=rev Log: - remember exception history Modified: trunk/libzypp/zypp/media/MediaHandler.cc Modified: trunk/libzypp/zypp/media/MediaHandler.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/media/MediaHandler.cc?rev=6817&r1=6816&r2=6817&view=diff ============================================================================== --- trunk/libzypp/zypp/media/MediaHandler.cc (original) +++ trunk/libzypp/zypp/media/MediaHandler.cc Wed Aug 22 17:16:09 2007 @@ -1300,10 +1300,16 @@ { #endif - // readdir + // readdir int res = readdir( retlist, info.path(), dots ); - if ( res ) - ZYPP_THROW(MediaSystemException(url(), "readdir failed")); + if ( res ) + { + MediaSystemException nexcpt(url(), "readdir failed"); +#if NONREMOTE_DIRECTORY_YAST + nexcpt.remember(excpt_r); +#endif + ZYPP_THROW(nexcpt); + } #if NONREMOTE_DIRECTORY_YAST } @@ -1338,10 +1344,16 @@ { #endif - // readdir - int res = readdir( retlist, info.path(), dots ); - if ( res ) - ZYPP_THROW(MediaSystemException(url(), "readdir failed")); + // readdir + int res = readdir( retlist, info.path(), dots ); + if ( res ) + { + MediaSystemException nexcpt(url(), "readdir failed"); +#if NONREMOTE_DIRECTORY_YAST + nexcpt.remember(excpt_r); +#endif + ZYPP_THROW(nexcpt); + } #if NONREMOTE_DIRECTORY_YAST } #endif -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org