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

Method sign_rpms

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

newMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected