Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions trixie
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ function _apt_with_progress() {
done
}

_apt_retried=false

function _apt() {
set -o pipefail
cat << EOF >> "$YUNOHOST_LOG"
Expand All @@ -269,6 +271,11 @@ EOF
fi
fi
set +o pipefail
if [[ "$ret" == "1" ]] && [[ "$_apt_retried" == false ]]; then
warn "Retrying apt in case this was just a transient download issue..."
_apt_retried=true
_apt "$@"
fi
return "$ret"
}

Expand Down