projects
/
platform
/
upstream
/
libzypp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
89c671e
)
- Check that the signature exists before checking
author
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Thu, 23 Aug 2007 22:38:44 +0000
(22:38 +0000)
committer
Duncan Mac-Vicar P
<dmacvicar@suse.de>
Thu, 23 Aug 2007 22:38:44 +0000
(22:38 +0000)
zypp/FileChecker.cc
patch
|
blob
|
history
diff --git
a/zypp/FileChecker.cc
b/zypp/FileChecker.cc
index 5368eb13db7738e6573ef572e4f6315eaae271ff..15bfa21007605129656adb851ba9339f8c2b190f 100644
(file)
--- a/
zypp/FileChecker.cc
+++ b/
zypp/FileChecker.cc
@@
-103,6
+103,12
@@
namespace zypp
void SignatureFileChecker::operator()(const Pathname &file ) const
{
ZYpp::Ptr z = getZYpp();
+
+ if ( ! PathInfo(_signature).isExist())
+ {
+ ZYPP_THROW(FileCheckException("Signature " + _signature.asString() + " not found."));
+ }
+
MIL << "checking " << file << " file validity using digital signature.." << endl;
bool valid = z->keyRing()->verifyFileSignatureWorkflow( file, string(), _signature);
if (!valid)