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

Method define_yum_release_tasks

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

Source from the content-addressed store, hash-verified

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