]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
upload.py: the 'skipping encryption' message was emitted exactly backwards
authorBrian Warner <warner@allmydata.com>
Tue, 29 Jan 2008 01:38:38 +0000 (18:38 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 29 Jan 2008 01:38:38 +0000 (18:38 -0700)
src/allmydata/upload.py

index b33ec085ec3620944e5197a5bf5c58b65dde389d..b892e219f8f619f6095b621db25aed41e18fd778 100644 (file)
@@ -518,8 +518,9 @@ class EncryptAnUploadable:
             # this ability, change this to simply update the counter
             # before each call to (hash_only==False) _encryptor.process()
             ciphertext = self._encryptor.process(chunk)
-            if not hash_only:
+            if hash_only:
                 log.msg("  skipping encryption")
+            else:
                 cryptdata.append(ciphertext)
             del ciphertext
             del chunk