]> git.ipfire.org Git - thirdparty/systemd.git/commit
ukify: Use length= instead of ignore_padding= in inspect
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 10 Aug 2023 15:05:55 +0000 (17:05 +0200)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 10 Aug 2023 18:35:21 +0000 (19:35 +0100)
commitc1e704626a162316f77ddc6e734ae63f4fb6bb88
tree1aae7ea2a3adcccbaacca65dea52bdb308fe2699
parentfc275ef315bad5468f05422103edd1e60261af87
ukify: Use length= instead of ignore_padding= in inspect

ignore_padding= was only added in a recent version of pefile. Let's
set length= to the virtual size instead which is what ignore_padding
does behind the scenes so we're compatible with older versions of
pefile.
src/ukify/ukify.py