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