Fix version comparison
Fix function error when migrating semantic_version package
@@ -392,7 +392,7 @@ class ToolArchives(QtArchives):
downloadable_archives = []
named_version = packageupdate.find("Version").text
full_version = Version(named_version)
- if not full_version.base_version == self.version.base_version:
+ if full_version.truncate('patch') != self.version.truncate('patch'):
self.logger.warning(
"Base Version of {} is different from requested version {} -- skip.".format(
named_version, self.version
