From aa3b5093235f2738886c1295e81a90b843548074 Mon Sep 17 00:00:00 2001
From: Brian Warner <warner@allmydata.com>
Date: Mon, 28 Jan 2008 18:38:38 -0700
Subject: [PATCH] upload.py: the 'skipping encryption' message was emitted
 exactly backwards

---
 src/allmydata/upload.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/allmydata/upload.py b/src/allmydata/upload.py
index b33ec085..b892e219 100644
--- a/src/allmydata/upload.py
+++ b/src/allmydata/upload.py
@@ -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
-- 
2.45.2