Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v7] Run gpg in batch mode #9731

Merged
merged 1 commit into from
Jan 12, 2022
Merged

[v7] Run gpg in batch mode #9731

merged 1 commit into from
Jan 12, 2022

Conversation

wadells
Copy link
Contributor

@wadells wadells commented Jan 11, 2022

v7 backport of #9728

Summary

This fixes a release bug when gpg attempts to sign repomd.xml when a signature is already present.

Contributes to #9726.

Testing Done

See #9728. No additional testing was done for this PR.

Do not prompt for any reason, especially not if a repomd.xml.asc already
exists when signing repomd.xml. Attempting to prompt (instead of
overwriting) results in publish failures like the following:

  + gpg --detach-sign --armor /rpmrepo/teleport/repodata/repomd.xml
  gpg: cannot open '/dev/tty': No such device or address

Contributes to #9726.

(cherry picked from commit 0fb71e9)
@wadells wadells requested review from r0mant and zmb3 January 11, 2022 03:08
@github-actions github-actions bot requested a review from russjones January 11, 2022 03:09
@wadells wadells merged commit 413d7ba into branch/v7 Jan 12, 2022
@wadells wadells deleted the walt/v7-rpm-sig-overwrite branch January 12, 2022 02:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants