Adapt to changed ZYppCommitResult api
authorMichael Andres <ma@suse.de>
Wed, 8 Jun 2011 11:12:24 +0000 (13:12 +0200)
committerMichael Andres <ma@suse.de>
Wed, 8 Jun 2011 11:13:27 +0000 (13:13 +0200)
src/solve-commit.cc
zypper.spec.cmake

index 3adb6ca..066844c 100755 (executable)
@@ -763,8 +763,7 @@ void solve_and_commit (Zypper & zypper)
 
           gData.show_media_progress_hack = false;
 
-         ZYppCommitResult::InsDelCnt errors( result.errorCount() ); // failed install/delete actions
-          if ( errors.first || errors.second )
+          if ( ! result.noError() )
             zypper.setExitCode(ZYPPER_EXIT_ERR_ZYPP);
 
           s.clear(); s << result;
index 2161c14..1b94328 100644 (file)
@@ -11,7 +11,7 @@
 # norootforbuild
 
 Name:           @PACKAGE@
-BuildRequires:  libzypp-devel >= 9.5.0
+BuildRequires:  libzypp-devel >= 9.8.0
 BuildRequires:  boost-devel >= 1.33.1
 BuildRequires:  gettext-devel >= 0.15
 BuildRequires:  readline-devel >= 5.1