Commit 655546a8 authored by Vitaly Lipatov's avatar Vitaly Lipatov

get_task_arepo_packages: fix curl result checking and add warning

parent 60fc6017
...@@ -125,14 +125,15 @@ tasknumber() ...@@ -125,14 +125,15 @@ tasknumber()
# todo: improve apt-repo # todo: improve apt-repo
get_task_arepo_packages() get_task_arepo_packages()
{ {
local res
epm assure apt-repo epm assure apt-repo
epm assure curl epm assure curl
info "TODO: please, improve apt-repo to support arepo (i586-) packages for apt-repo list task" info "TODO: please, improve apt-repo to support arepo (i586-) packages for apt-repo list task"
showcmd "curl -s -f http://git.altlinux.org/tasks/$tn/plan/arepo-add-x86_64-i586 | cut -f1" showcmd "curl -s -f http://git.altlinux.org/tasks/$tn/plan/arepo-add-x86_64-i586 | cut -f1"
# TODO: retrieve one time # TODO: retrieve one time
a='' curl -s http://git.altlinux.org/tasks/$tn/plan/arepo-add-x86_64-i586 2>/dev/null >/dev/null || return res="$(a='' curl -s -f http://git.altlinux.org/tasks/$tn/plan/arepo-add-x86_64-i586 2>/dev/null)" || { warning "There is a download error for x86_64-i586 arepo." ; return ; }
a='' curl -s -f http://git.altlinux.org/tasks/$tn/plan/arepo-add-x86_64-i586 2>/dev/null | cut -f1 echo "$res" | cut -f1
} }
# use assure apt-repo before # use assure apt-repo before
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment