Addon Manager: Fix hashing with Qt 5.9

This commit is contained in:
Chris Hennes
2021-12-20 14:21:00 -06:00
parent e7cde8bed0
commit f9fb1c9abb

View File

@@ -98,7 +98,7 @@ class MetadataDownloadWorker(QObject):
self.repo.repo_type = AddonManagerRepo.RepoType.PACKAGE
new_xml = self.fetch_task.readAll()
hasher = hashlib.sha1()
hasher.update(new_xml)
hasher.update(new_xml.data())
new_sha1 = hasher.hexdigest()
self.last_sha1 = new_sha1
# Determine if we need to download the icon: only do that if the