]> git.dujemihanovic.xyz Git - u-boot.git/commit
pylibfdt: Allow version normalization to fail
authorTom Rini <trini@konsulko.com>
Sat, 7 Jan 2023 23:02:26 +0000 (18:02 -0500)
committerTom Rini <trini@konsulko.com>
Sat, 7 Jan 2023 23:02:26 +0000 (18:02 -0500)
commit051f409d25f84b394c15e82190c897a46cf6c60c
tree6e688298f3ccd26b7fb67149c8d9ce58c3dce434
parentd1f4b090dd17ee11373859f2c91af94bf254af7a
pylibfdt: Allow version normalization to fail

In some cases, we might not have the sic portion of setuputils
available. Make our import and use of this be done in try/except blocks
as this is done to suppress a run-time warning that is otherwise
non-fatal.

Reported-by: Pali Rohár <pali@kernel.org>
Fixes: 141659187667 ("pylibfdt: Fix disable version normalization")
Signed-off-by: Tom Rini <trini@konsulko.com>
scripts/dtc/pylibfdt/setup.py