mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-13 16:54:50 +00:00
trivial: add an explicit check for python's packaging module
Fixes: #4976 Suggested-by: eschwartz93@gmail.com
This commit is contained in:
parent
06705a7674
commit
473459c93d
@ -4,7 +4,11 @@
|
|||||||
import sys
|
import sys
|
||||||
import markdown
|
import markdown
|
||||||
|
|
||||||
from packaging.version import Version
|
try:
|
||||||
|
from packaging.version import Version
|
||||||
|
except ImportError:
|
||||||
|
print("Missing 'packaging' python module")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
|
# https://github.com/fwupd/fwupd/pull/3337#issuecomment-858947695
|
||||||
if Version(markdown.__version__) < Version("3.3.3"):
|
if Version(markdown.__version__) < Version("3.3.3"):
|
||||||
|
Loading…
Reference in New Issue
Block a user