Nitrokey / pynitrokey

Python client for Nitrokey devices
Apache License 2.0
93 stars 28 forks source link

Check pynitrokey version on firmware updates #416

Closed Laborratte5 closed 11 months ago

Laborratte5 commented 1 year ago

Check for pynitrokey updates before update firmware of pro, storage, start, fido2

This PR adds a version check of the pynitrokey tool, which is executed before every firmware update. Users will be warned about updates with older pynitrokey versions.

Changes

Checklist

Make sure to run make check and make fix before creating a PR, otherwise the CI will fail.

Test Environment and Execution

Relevant Output Example

You are using an outdated version (0.4.30) of pynitrokey.
Latest pynitrokey version is 0.4.38
Updating with an outdated version is discouraged.
Do you still want to continue? [y/N]: 

Fixes #198

robin-nitrokey commented 11 months ago

Sorry for the delay. Tested and works fine for me. Thank you for the PR!