60 "The following modules are out of date or probably need an update." |
60 "The following modules are out of date or probably need an update." |
61 "\nMajor Updates may include breaking changes. Review before" |
61 "\nMajor Updates may include breaking changes. Review before" |
62 " updating.\nMPY Format changes require an update." |
62 " updating.\nMPY Format changes require an update." |
63 ) |
63 ) |
64 ) |
64 ) |
|
65 try: |
|
66 versionIsValid = VersionInfo.is_valid |
|
67 except AttributeError: |
|
68 versionIsValid = VersionInfo.isvalid |
65 for module in self.__modules.values(): |
69 for module in self.__modules.values(): |
66 if isinstance(module.bundle_version, str) and not VersionInfo.isvalid( |
70 if isinstance(module.bundle_version, str) and not versionIsValid( |
67 module.bundle_version |
71 module.bundle_version |
68 ): |
72 ): |
69 reason = self.tr("Incorrect '__version__' Metadata") |
73 reason = self.tr("Incorrect '__version__' Metadata") |
70 needsUpdate = True |
74 needsUpdate = True |
71 elif module.bad_format: |
75 elif module.bad_format: |