small fixes
This commit is contained in:
parent
5ef8a56568
commit
3415c74ec1
|
@ -20,7 +20,7 @@ namespace :new_core do
|
|||
say "[#{Time.zone.now}] Starting to publish mass-build 317..."
|
||||
|
||||
bl = BuildList.where(:mass_build_id => 317).first
|
||||
platform_path = "#{bl.save_to_platform.path}/repository"
|
||||
repository_path = "#{bl.save_to_platform.path}/repository"
|
||||
BuildList.where(:mass_build_id => 317).
|
||||
where("status != #{BuildServer::BUILD_ERROR}").
|
||||
order(:id).
|
||||
|
@ -31,7 +31,7 @@ namespace :new_core do
|
|||
|
||||
sha1 = bl.results.find{ |r| r['file_name'] =~ /.*\.tar\.gz$/ }['sha1']
|
||||
|
||||
root_folder = "#{platform_path}/#{bl.arch.name}/main"
|
||||
root_folder = "#{repository_path}/#{bl.arch.name}/main"
|
||||
system "cd #{root_folder} && curl -L -O http://file-store.rosalinux.ru/api/v1/file_stores/#{sha1}"
|
||||
system "cd #{root_folder} && tar -xzf #{sha1}"
|
||||
system "rm -f #{root_folder}/#{sha1}"
|
||||
|
@ -42,7 +42,7 @@ namespace :new_core do
|
|||
system "sudo chown root:root #{archive_folder}/RPM/*"
|
||||
system "sudo chmod 0666 #{archive_folder}/RPM/*"
|
||||
|
||||
system "sudo mv #{archive_folder}/SRC_RPM/* #{root_folder}/release/"
|
||||
system "sudo mv #{archive_folder}/SRC_RPM/* #{repository_path}/SRPMS/main/release/"
|
||||
system "sudo mv #{archive_folder}/RPM/* #{root_folder}/release/"
|
||||
|
||||
system "sudo rm -rf #{archive_folder}"
|
||||
|
|
Loading…
Reference in New Issue