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

Method define_yum_release_tasks

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

eachMethod · 0.45
newMethod · 0.45
uploadMethod · 0.45

Tested by

no test coverage detected