Mailinglist Archive: zypp-commit (266 mails)

< Previous Next >
[zypp-commit] r11731 - /trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc
  • From: mlandres@xxxxxxxxxxxxxxxx
  • Date: Wed, 19 Nov 2008 17:39:43 -0000
  • Message-id: <20081119173943.29D5ADF682@xxxxxxxxxxxxxxxx>
Author: mlandres
Date: Wed Nov 19 18:39:42 2008
New Revision: 11731

URL: http://svn.opensuse.org/viewcvs/zypp?rev=11731&view=rev
Log:
exceptionless detection of target

Modified:
trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc

Modified: trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc
URL:
http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc?rev=11731&r1=11730&r2=11731&view=diff
==============================================================================
--- trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc (original)
+++ trunk/libzypp/zypp/solver/detail/ResolverUpgrade.cc Wed Nov 19 18:39:42 2008
@@ -70,15 +70,13 @@
bool
Resolver::doUpgrade( UpgradeStatistics & opt_stats_r )
{
- Target_Ptr target;
- try {
- target = getZYpp()->target();
- }
- catch( const Exception & excpt_r) {
- ERR << "Huh, no target ?";
- ZYPP_CAUGHT(excpt_r);
- if (!_testing) return false; // can't continue without target
- MIL << "Running in test mode, continuing without target" << endl;
+ Target_Ptr target( getZYpp()->getTarget() );
+ if ( ! target )
+ {
+ ERR << "Huh, no target ?" << endl;
+ if (!_testing)
+ return false; // can't continue without target
+ MIL << "Running in test mode, continuing without target" << endl;
}
MIL << "target at " << target << endl;


--
To unsubscribe, e-mail: zypp-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: zypp-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages