Bug 153323 - Pkg::SourceMediaData(-1) does not catch exceptions
Summary: Pkg::SourceMediaData(-1) does not catch exceptions
Status: RESOLVED FIXED
Alias: None
Product: SUSE Linux 10.1
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Beta 5
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Ladislav Slezák
QA Contact: Klaus Kämpf
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-24 09:43 UTC by Martin Vidner
Modified: 2006-03-03 08:41 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.