Author: jkupec Date: Thu Mar 13 11:45:13 2008 New Revision: 9110 URL: http://svn.opensuse.org/viewcvs/zypp?rev=9110&view=rev Log: - release all media before requesting another (bnc #336881) - needs testing, to be reverted if something goes wrong Modified: trunk/libzypp/zypp/MediaSetAccess.cc Modified: trunk/libzypp/zypp/MediaSetAccess.cc URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/MediaSetAccess.cc?rev=9110&r1=9109&r2=9110&view=diff ============================================================================== --- trunk/libzypp/zypp/MediaSetAccess.cc (original) +++ trunk/libzypp/zypp/MediaSetAccess.cc Thu Mar 13 11:45:13 2008 @@ -146,6 +146,9 @@ unsigned int devindex; media_mgr.getDetectedDevices(media, devices, devindex); + // release all media before requesting another (#336881) + media_mgr.releaseAll(); + user = report->requestMedia ( _url, media_nr, @@ -264,6 +267,8 @@ else { media_mgr.getDetectedDevices(media, devices, devindex); + // release all media before requesting another (#336881) + media_mgr.releaseAll(); report->requestMedia ( _url, @@ -405,6 +410,9 @@ unsigned int devindex; media_mgr.getDetectedDevices(_media, devices, devindex); + // release all media before requesting another (#336881) + media_mgr.releaseAll(); + user = report->requestMedia(_url, media_nr, string(), //! \todo label -- To unsubscribe, e-mail: zypp-commit+unsubscribe@opensuse.org For additional commands, e-mail: zypp-commit+help@opensuse.org