projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12cfae5
)
Fix exception handling when unmounting iso images (bnc #517856)
author
Michael Andres
<ma@suse.de>
Fri, 3 Jul 2009 07:30:00 +0000
(09:30 +0200)
committer
Michael Andres
<ma@suse.de>
Fri, 3 Jul 2009 07:30:00 +0000
(09:30 +0200)
zypp/media/MediaISO.cc
patch
|
blob
|
history
diff --git
a/zypp/media/MediaISO.cc
b/zypp/media/MediaISO.cc
index
3fee74f
..
8193795
100644
(file)
--- 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