From: Brian Warner Date: Tue, 29 Jan 2008 01:38:38 +0000 (-0700) Subject: upload.py: the 'skipping encryption' message was emitted exactly backwards X-Git-Tag: allmydata-tahoe-0.8.0~214 X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/quickstart.html?a=commitdiff_plain;h=aa3b5093235f2738886c1295e81a90b843548074;p=tahoe-lafs%2Ftahoe-lafs.git upload.py: the 'skipping encryption' message was emitted exactly backwards --- 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