Module: Pkg::Sign::Deb

Defined in:
lib/packaging/sign/deb.rb

Class Method Summary collapse

Class Method Details

.sign_changes(file) ⇒ Object



4
5
6
7
8
# File 'lib/packaging/sign/deb.rb', line 4

def sign_changes(file)
  # Lazy lazy lazy lazy lazy
  sign_program = "-p'gpg --use-agent --no-tty'" if ENV['RPM_GPG_AGENT']
  Pkg::Util::Execution.capture3("debsign #{sign_program} --re-sign -k#{Pkg::Config.gpg_key} #{file}")
end