Skip to content

Commit 5eab613

Browse files
committed
minor spec-version comparison now checks for any difference in minor versions
1 parent fc2c205 commit 5eab613

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tuf/client/updater.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1509,8 +1509,8 @@ def _get_metadata_file(self, metadata_role, remote_filename,
15091509
'metadata lists version number: ' + str(metadata_spec_version))
15101510

15111511
#report to user if minor versions do not match, continue with update
1512-
if metadata_spec_minor_version > code_spec_minor_version:
1513-
logger.info("Downloaded metadata that specifies a higher minor " +
1512+
if metadata_spec_minor_version != code_spec_minor_version:
1513+
logger.info("Downloaded metadata that specifies a different minor " +
15141514
"spec_version. This code has version " +
15151515
str(tuf.SPECIFICATION_VERSION) +
15161516
" and the metadata lists version number " +

0 commit comments

Comments
 (0)