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

Method define_yum_release_tasks

dev/release/binary-task.rb:2157–2190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2155 end
2156
2157 def define_yum_release_tasks
2158 directory yum_release_repositories_dir
2159
2160 namespace :yum do
2161 desc "Release Yum packages"
2162 task :release => yum_release_repositories_dir do
2163 yum_distributions.each do |distribution|
2164 release_distribution(distribution,
2165 list: uploaded_files_name)
2166
2167 distribution_dir = "#{yum_release_repositories_dir}/#{distribution}"
2168 download_distribution(:artifactory,
2169 distribution,
2170 distribution_dir,
2171 :rc,
2172 pattern: /\/repodata\//)
2173 uploader = ArtifactoryUploader.new(api_key: artifactory_api_key,
2174 distribution: distribution,
2175 source: distribution_dir,
2176 staging: staging?,
2177 # Don't remove old repodata for
2178 # unsupported distribution version
2179 # such as Amazon Linux 2.
2180 # This keeps garbage in repodata/
2181 # for currently available
2182 # distribution versions but we
2183 # accept it for easy to implement.
2184 sync: false,
2185 sync_pattern: /\/repodata\//)
2186 uploader.upload
2187 end
2188 end
2189 end
2190 end
2191
2192 def define_yum_tasks
2193 define_yum_staging_tasks

Callers

nothing calls this directly

Calls 3

eachMethod · 0.45
newMethod · 0.45
uploadMethod · 0.45

Tested by

no test coverage detected