Bug 153323

Summary: Pkg::SourceMediaData(-1) does not catch exceptions
Product: [openSUSE] SUSE Linux 10.1 Reporter: Martin Vidner <mvidner>
Component: libzyppAssignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Klaus Kämpf <kkaempf>
Severity: Normal    
Priority: P5 - None    
Version: Beta 5   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: Other Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Martin Vidner 2006-02-24 09:43:44 UTC
If I call Pkg::SourceMediaData with an invalid source ID (beacuse the product has disappeared form the install server), yast aborts:
terminate called after throwing an instance of 'zypp::Exception'
  what():  Unknown source ID
/sbin/yast: line 207: 26972 Neúspěšně ukončen (SIGABRT)        $ybindir/y2base "$module" "$@" ncurses

2006-02-24 10:58:03 <1> Mjolnir(26972) [wfm] hh/source.ycp:15 Pkg Builtin called: SourceMediaData
2006-02-24 10:58:03 <5> Mjolnir(26972) [base] Exception.cc(log):83 SourceManager.cc(findSource):251 THROW:    SourceManager.cc(findSource):251: Unknown source ID
Comment 1 Ladislav Slezák 2006-02-24 12:15:10 UTC
Fixed in SVN
Comment 2 Stanislav Visnovsky 2006-03-03 08:41:45 UTC
So it's fixed.