upload.py: the 'skipping encryption' message was emitted exactly backwards

This commit is contained in:
Brian Warner 2008-01-28 18:38:38 -07:00
parent b41749efa0
commit aa3b509323

View 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