[Pkg-owncloud-commits] [owncloud-client] 167/484: Revert "In case of empty checksum type, emit validated."

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit c11c35c459095343a823ae8be19ea9166dbe9e59
Author: Christian Kamm <mail at ckamm.de>
Date:   Wed Oct 14 13:41:51 2015 +0200

    Revert "In case of empty checksum type, emit validated."
    
    This reverts commit b05ca526a46c8a306ccfb4aca0d5cf94881ba14f.
    
    The checksum type setting should not matter for downloads.
---
 src/libsync/transmissionchecksumvalidator.cpp | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/src/libsync/transmissionchecksumvalidator.cpp b/src/libsync/transmissionchecksumvalidator.cpp
index 97e5915..43b0518 100644
--- a/src/libsync/transmissionchecksumvalidator.cpp
+++ b/src/libsync/transmissionchecksumvalidator.cpp
@@ -94,10 +94,7 @@ void TransmissionChecksumValidator::downloadValidation( const QByteArray& checks
 {
     // if the incoming header is empty, there was no checksum header, and
     // no validation can happen. Just continue.
-    const QString csType = checksumType();
-
-    // for empty checksum type, everything is valid.
-    if( csType.isEmpty() ) {
+    if( checksumHeader.isEmpty() ) {
         emit validated(QByteArray());
         return;
     }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list