From afb5b91897aba1e7739c3634bc2601d3689b49ce Mon Sep 17 00:00:00 2001 From: Klaus Kaempf Date: Thu, 9 Feb 2006 17:57:40 +0000 Subject: [PATCH] try/catch around cap parser --- zypp/source/susetags/PackagesParser.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/zypp/source/susetags/PackagesParser.cc b/zypp/source/susetags/PackagesParser.cc index 09da042..100a5f7 100644 --- a/zypp/source/susetags/PackagesParser.cc +++ b/zypp/source/susetags/PackagesParser.cc @@ -51,7 +51,7 @@ namespace zypp { if ( pkgPending() ) { - result[nvrad] = pkgImpl; + result.insert(PkgContent::value_type( nvrad, pkgImpl ) ); } pkgImpl = nextPkg_r; } @@ -66,7 +66,12 @@ namespace zypp for ( std::list::const_iterator it = depstr_r.begin(); it != depstr_r.end(); ++it ) { - capset.insert( CapFactory().parse( ResTraits::kind, *it ) ); + try { + capset.insert( CapFactory().parse( ResTraits::kind, *it ) ); + } + catch (Exception & excpt_r) { + ZYPP_CAUGHT(excpt_r); + } } } -- 2.7.4