Sign. Part 1

This commit is contained in:
alexey
2025-03-21 00:02:18 +03:00
parent a57d0a0f15
commit c6a89e7be1
12 changed files with 107 additions and 16 deletions

View File

@@ -17,6 +17,22 @@ class RPMReader
end
end
class RepoManagerKeys
attr :path, :error
def initialize(path)
@error = nil
@path = path
end
def check_key_exists()
key_file = File.join(@path, "public", "mockgui-gpg-key")
File.exist?(key_file)
end
end
#rpm --define "_gpg_sign_cmd_extra_args --pinentry-mode loopback --passphrase 1234" --addsign bayrepo-neuro-farm-0.1-2.x86_64.rpm
class RepoManager
attr :path, :error, :last_status, :last_pid