velovix / debutizer

A tool for building and managing APT packages
BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Use gpgme's Python bindings #62

Closed velovix closed 3 years ago

velovix commented 3 years ago

GPG's command line interface is pretty troublesome when it comes to headless execution, usually needing multiple flags just to convince it not to prompt the user for input. Using the official Python bindings would likely be more reliable.

velovix commented 3 years ago

Unfortunately I don't think this is feasible to do consistently, and that's because we need to use the debsign command. This command does some things to the files it signs that I don't entirely understand or know how to replicate, and in order to get it to be headless I need to feed it a custom gpg command with all the necessary flags. I suppose it would be possible to create a custom gpg-like command that actually calls gpgme in the background and feed that to debsign, but that's a lot of effort and it's not clear to me that it's worth it. Closing this for now.