Mailinglist Archive: zypp-commit (325 mails)

< Previous Next >
[zypp-commit] r7227 - /trunk/libzypp/zypp/repo/RepoProvideFile.cc
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Wed, 12 Sep 2007 21:21:19 -0000
  • Message-id: <20070912212119.BFC4F35F2D@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Wed Sep 12 23:21:19 2007
New Revision: 7227

URL: http://svn.opensuse.org/viewcvs/zypp?rev=7227&view=rev
Log:
- throw a FileCheck exception if the file verification fails. Solves
  a old hack in zypper

Modified:
    trunk/libzypp/zypp/repo/RepoProvideFile.cc

Modified: trunk/libzypp/zypp/repo/RepoProvideFile.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/repo/RepoProvideFile.cc?rev=7227&r1=7226&r2=7227&view=diff
==============================================================================
--- trunk/libzypp/zypp/repo/RepoProvideFile.cc (original)
+++ trunk/libzypp/zypp/repo/RepoProvideFile.cc Wed Sep 12 23:21:19 2007
@@ -27,6 +27,7 @@
 
 #include "zypp/repo/SUSEMediaVerifier.h"
 #include "zypp/repo/RepoException.h"
+#include "zypp/FileChecker.h"
 
 using std::endl;
 using std::set;
@@ -257,7 +258,7 @@
               err << "]";
 
               if ( policy_r.failOnChecksumError() )
-                ZYPP_THROW( Exception( err.str() ) );
+                ZYPP_THROW( FileCheckException( err.str() ) );
               else
                 WAR << "NO failOnChecksumError: " << err.str() << 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