[sysadmin/neon-tooling] lib/apt: add --yes flag so no gpg error if already dearmored

Carlos De Maine <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 515386736b63a02669a3600b426f71ff1634d655 by Carlos De Maine.
Committed on 19/07/2026 at 03:29.
Pushed by carlosdem into branch 'master'.

add --yes flag so no gpg error if already dearmored

M  +1    -1    lib/apt/key.rb

https://invent.kde.org/sysadmin/neon-tooling/-/commit/515386736b63a02669a3600b426f71ff1634d655

diff --git a/lib/apt/key.rb b/lib/apt/key.rb
index b3068642..214efd62 100644
--- a/lib/apt/key.rb
+++ b/lib/apt/key.rb
@@ -74,7 +74,7 @@ module Apt
 
         FileUtils.mkdir_p(KEYRINGS_DIR)
 
-        IO.popen(['gpg', '--no-tty', '--batch', '--dearmor', '-o', target_path], 'w') do |io|
+        IO.popen(['gpg', '--yes', '--no-tty', '--batch', '--dearmor', '-o', target_path], 'w') do |io|
           io.write(raw_data)
         end
         $?.success?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.