Commit 9c886e4e authored by Vitaly Lipatov's avatar Vitaly Lipatov

add check if remote side returns fail

parent 1f835629
......@@ -130,6 +130,8 @@ get_task_arepo_packages()
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"
# 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
a='' curl -s -f http://git.altlinux.org/tasks/$tn/plan/arepo-add-x86_64-i586 2>/dev/null | cut -f1
}
......@@ -140,6 +142,7 @@ get_task_packages()
local tn
for tn in $(tasknumber "$@") ; do
showcmd apt-repo list task "$tn"
a='' apt-repo list task "$tn" >/dev/null || continue
a='' apt-repo list task "$tn"
[ "$arch" = "x86_64" ] && get_task_arepo_packages "$tn"
done
......
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