Pekka Helenius 2 years ago
parent
commit
ea8d87fc83
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      pacman/usr/share/makepkg/source/git.sh

+ 6
- 2
pacman/usr/share/makepkg/source/git.sh View File

@ -62,8 +62,12 @@ download_git() {
plain "$(gettext "Aborting...")"
exit 1
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
warning "$(gettext "Failure while updating %s %s repo")" "${repo}" "git"
fi


Loading…
Cancel
Save