From 84edb0c020547ce5d5a5353c0e8e6382363f1e63 Mon Sep 17 00:00:00 2001 From: Michael Andres Date: Fri, 3 Jul 2009 09:30:00 +0200 Subject: [PATCH] Fix exception handling when unmounting iso images (bnc #517856) --- zypp/media/MediaISO.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/zypp/media/MediaISO.cc b/zypp/media/MediaISO.cc index 3fee74f..8193795 100644 --- a/zypp/media/MediaISO.cc +++ b/zypp/media/MediaISO.cc @@ -299,8 +299,18 @@ namespace zypp if( _parentId) { + // Unmounting the iso already succeeded, + // so don't let exceptions escape. MediaManager manager; - manager.release(_parentId); + try + { + manager.release(_parentId); + } + catch ( const Exception & excpt_r ) + { + ZYPP_CAUGHT( excpt_r ); + WAR << "Not been able to cleanup the parent mount." << endl; + } } // else: // the media manager has reset the _parentId -- 2.7.4