lib/mprm/debian.rb
# We expect that GPG is installed and a key has already been made
We expect that GPG is installed and a key has already been made
We expect that GPG is installed and a key has already been made
def generate_release_gpg(path,release,gpg)
    Dir.chdir("#{path}/dists/#{release}") do
      if gpg_sign_algorithm.nil?
        sign_algorithm = "none"
      else
        sign_algorithm = gpg_sign_algorithm
      end
      if gpg.nil?
        sign_cmd = "gpg --digest-algo \"#{sign_algorithm}\" --yes --output Release.gpg -b Release"
      elsif gpg_passphrase
        sign_cmd = "echo \'#{gpg_passphrase}\' | gpg --digest-algo \"#{sign_algorithm}\" -u #{gpg} --passphrase-fd 0 --yes --output Release.gpg -b Release"
      else
        sign_cmd = "gpg -a --digest-algo \"#{sign_algorithm}\" -u #{gpg} --yes --output Release.gpg -b Release"
      end
      MPRM.logger.debug "Exec: #{sign_cmd}"
      MPRM.logger.debug `#{sign_cmd}`
    end
  end
def generate_release_gpg ( path , release , gpg ) Dir . chdir ( "#{path}/dists/#{release}" ) do if gpg_sign_algorithm . nil? sign_algorithm = "none" else sign_algorithm = gpg_sign_algorithm end if gpg . nil? sign_cmd = "gpg --digest-algo \"#{sign_algorithm}\" --yes --output Release.gpg -b Release" elsif gpg_passphrase sign_cmd = "echo \'#{gpg_passphrase}\' | gpg --digest-algo \"#{sign_algorithm}\" -u #{gpg} --passphrase-fd 0 --yes --output Release.gpg -b Release" else sign_cmd = "gpg -a --digest-algo \"#{sign_algorithm}\" -u #{gpg} --yes --output Release.gpg -b Release" end MPRM . logger . debug "Exec: #{sign_cmd}" MPRM . logger . debug ` #{ sign_cmd } ` end end
We expect that GPG is installed and a key has already been made
We expect that GPG is installed and a key has already been made
path
<not_specific>
release
<not_specific>
gpg
<not_specific>