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

Method rpm_sign

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

Source from the content-addressed store, hash-verified

1921 end
1922
1923 def rpm_sign(directory)
1924 unless system("rpm", "-q",
1925 rpm_gpg_key_package_name(gpg_key_id),
1926 out: IO::NULL)
1927 gpg_key = Tempfile.new(["apache-arrow-binary", ".asc"])
1928 sh("gpg",
1929 "--armor",
1930 "--export", gpg_key_id,
1931 out: gpg_key.path,
1932 verbose: verbose?)
1933 sh("rpm",
1934 "--import", gpg_key.path,
1935 out: default_output,
1936 verbose: verbose?)
1937 gpg_key.close!
1938 end
1939
1940 yum_targets.each do |distribution, distribution_version|
1941 source_dir = [
1942 directory,
1943 distribution,
1944 distribution_version,
1945 ].join("/")
1946 sign_rpms(source_dir)
1947 end
1948 end
1949
1950 def yum_update(base_dir, incoming_dir)
1951 yum_targets.each do |distribution, distribution_version|

Callers

nothing calls this directly

Calls 4

newMethod · 0.45
pathMethod · 0.45
eachMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected