From 5f0face742a26364a79ca1511398f5e8d3ec27fc Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Thu, 26 May 2011 14:32:32 +0200 Subject: [PATCH] fix localality check, improve debug output --- remote/signing.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/remote/signing.cpp b/remote/signing.cpp index 030a5d094..bc023914e 100644 --- a/remote/signing.cpp +++ b/remote/signing.cpp @@ -498,15 +498,14 @@ QString Signing::signerOf(const KUrl &package, const KUrl &signature) const kDebug() << "Checking existence of " << package.pathOrUrl(); kDebug() << "Checking existence of " << signature.pathOrUrl(); - - if (!package.isLocalFile() || !signature.isLocalFile()) { + if (!package.isLocalFile() || (!signature.isEmpty() && !signature.isLocalFile())) { kDebug() << "Remote urls not yet supported. FIXME."; return QString(); } const QString packagePath = package.path(); if (!QFile::exists(packagePath)) { - kDebug() << "Package doesn't exists: signature verification aborted."; + kDebug() << "Package" << packagePath << "does not exist: signature verification aborted."; return QString(); } @@ -514,7 +513,7 @@ QString Signing::signerOf(const KUrl &package, const KUrl &signature) const : signature.path(); if (!QFile::exists(signaturePath)) { - kDebug() << "Signature does not exist: signature verification aborted."; + kDebug() << "Signature" << signaturePath << "does not exist: signature verification aborted."; return QString(); }