|
@ -62,8 +62,12 @@ download_git() { |
|
|
plain "$(gettext "Aborting...")" |
|
|
plain "$(gettext "Aborting...")" |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" |
|
|
|
|
|
if ! git fetch --all -p; then |
|
|
|
|
|
|
|
|
if [[ ${options[@]} ]]; then |
|
|
|
|
|
msg2 "$(gettext "Updating %s %s repo (params: %s)...")" "${repo}" "git" "${options[*]}" |
|
|
|
|
|
else |
|
|
|
|
|
msg2 "$(gettext "Updating %s %s repo...")" "${repo}" "git" |
|
|
|
|
|
fi |
|
|
|
|
|
if ! git fetch ${options[*]} -p; then |
|
|
# only warn on failure to allow offline builds |
|
|
# only warn on failure to allow offline builds |
|
|
warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git" |
|
|
warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git" |
|
|
fi |
|
|
fi |
|
|