Skip to content

Commit

Permalink
minor spec-version comparison now checks for any difference in minor …
Browse files Browse the repository at this point in the history
…versions
  • Loading branch information
mnm678 committed Jun 6, 2019
1 parent fc2c205 commit 5eab613
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tuf/client/updater.py
Original file line number Diff line number Diff line change
Expand Up @@ -1509,8 +1509,8 @@ def _get_metadata_file(self, metadata_role, remote_filename,
'metadata lists version number: ' + str(metadata_spec_version))

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

0 comments on commit 5eab613

Please sign in to comment.