Linutronix / elbe

Embedded Linux Build Environment
https://elbe-rfs.org
GNU General Public License v3.0
163 stars 59 forks source link

Bug in elbepack/egpg.py? #383

Closed coveritytest closed 2 months ago

coveritytest commented 10 months ago

When verifying the GPG signature and removing the signature using the function unsign_file from the file elbepack/egpg.py, an exception occurs. The function unsign_file is used by the ELBE command remove_sign or by the python3_elbe_updated service. At first an exception occurs because the output file does not exist when opening the file with core.Data(file=outfilename). If you create it as a dummy file with "touch " before executing the command, the exception is gone and the verification is successful. However, you don't get the contents of the original file. This behavior occurs on an arm-based target system with current Debian 12 (bookworm) and the Python3 packages included in Debian 12 (Python version 3.11).

How can we get the content of the original file from ELBE so that ELBE can use this file in the further execution e.g. in the function handle_update_file?

t-8ch commented 2 months ago

Thanks for your report.

I think I reproduce the bug. Could you try the series at https://lists.linutronix.de/pipermail/elbe-devel/2024-April/006867.html ? Especially patch 2.