Mailinglist Archive: zypp-commit (731 mails)

< Previous Next >
[zypp-commit] r6876 - /trunk/libzypp/zypp/FileChecker.cc
  • From: kkaempf@xxxxxxxxxxxxxxxx
  • Date: Sat, 25 Aug 2007 14:03:42 -0000
  • Message-id: <20070825140342.2C4F02E6D6@xxxxxxxxxxxxxxxx>
Author: kkaempf
Date: Sat Aug 25 16:03:41 2007
New Revision: 6876

URL: http://svn.opensuse.org/viewcvs/zypp?rev=6876&view=rev
Log:
add a couple of .basename() calls (#302059)

Modified:
    trunk/libzypp/zypp/FileChecker.cc

Modified: trunk/libzypp/zypp/FileChecker.cc
URL: http://svn.opensuse.org/viewcvs/zypp/trunk/libzypp/zypp/FileChecker.cc?rev=6876&r1=6875&r2=6876&view=diff
==============================================================================
--- trunk/libzypp/zypp/FileChecker.cc (original)
+++ trunk/libzypp/zypp/FileChecker.cc Sat Aug 25 16:03:41 2007
@@ -43,7 +43,7 @@
       }
       else
       {
-        ZYPP_THROW(FileCheckException("No checksum available"));
+        ZYPP_THROW( FileCheckException( "No checksum available for " + file.basename() ) );
       }
     }
     else
@@ -57,7 +57,7 @@
         }
         else
         {
-          ZYPP_THROW(FileCheckException("Wrong checksum"));
+          ZYPP_THROW( FileCheckException( "Wrong checksum for "  + file.basename() ) );
         }
       }
     }
@@ -119,9 +119,9 @@
     }
 
     MIL << "checking " << file << " file validity using digital signature.." << endl;
-    bool valid = z->keyRing()->verifyFileSignatureWorkflow( file, string(), _signature);
+    bool valid = z->keyRing()->verifyFileSignatureWorkflow( file, file.basename(), _signature);
     if (!valid)
-      ZYPP_THROW(FileCheckException("Signature verification failed"));
+      ZYPP_THROW( FileCheckException( "Signature verification failed for "  + file.basename() ) );
   }
 
   /******************************************************************

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

< Previous Next >
This Thread
  • No further messages