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

Method rpm_sign

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

Source from the content-addressed store, hash-verified

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