Closed velovix closed 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.
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.