MCPcopy Create free account
hub / github.com/apache/arrow / sign_rpms

Method sign_rpms

dev/release/binary-task.rb:1907–1924  ·  view source on GitHub ↗
(directory)

Source from the content-addressed store, hash-verified

1905 end
1906
1907 def sign_rpms(directory)
1908 thread_pool = ThreadPool.new(:gpg) do |rpm|
1909 unless signed_rpm?(rpm)
1910 sh("rpm",
1911 "-D", "_gpg_name #{gpg_key_id}",
1912 "-D", "__gpg /usr/bin/gpg",
1913 "-D", "__gpg_check_password_cmd /bin/true true",
1914 "--resign",
1915 rpm,
1916 out: default_output,
1917 verbose: verbose?)
1918 end
1919 end
1920 Dir.glob("#{directory}/**/*.rpm") do |rpm|
1921 thread_pool << rpm
1922 end
1923 thread_pool.join
1924 end
1925
1926 def rpm_sign(directory)
1927 unless system("rpm", "-q",

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected