summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/Checksum.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/Checksum.py')
-rw-r--r--module/plugins/hooks/Checksum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index af6f2f406..cdda86a27 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -38,7 +38,7 @@ def compute_checksum(local_file, algorithm):
class Checksum(Addon):
__name__ = "Checksum"
__type__ = "hook"
- __version__ = "0.24"
+ __version__ = "0.25"
__status__ = "broken"
__config__ = [("activated" , "bool" , "Activated" , False ),
@@ -190,7 +190,7 @@ class Checksum(Addon):
algorithm = self.methods.get(file_type, file_type)
checksum = compute_checksum(local_file, algorithm)
- if checksum is data['HASH']:
+ if checksum == data['HASH']:
self.log_info(_('File integrity of "%s" verified by %s checksum (%s)') %
(data['NAME'], algorithm, checksum))
else: