Merge branch 'maint-0.4.7'

This commit is contained in:
David Goulet 2023-01-10 09:12:20 -05:00
commit 7e055c383c
4 changed files with 13 additions and 1 deletions

View File

@ -371,7 +371,6 @@ if [[ "$RUN_STAGE_BUILD" = "yes" ]] ; then
hooray "Distcheck was successful. Nothing further will be done."
# We have to exit early here, since we can't do any other tests.
cp tor-*.tar.gz "${CI_SRCDIR}"/artifacts
exit 0
else
error "Diagnostics:"
runcmd make show-distdir-testlog || true
@ -379,6 +378,7 @@ if [[ "$RUN_STAGE_BUILD" = "yes" ]] ; then
die "Unable to continue."
fi
end_section Distcheck
exit 0
fi
fi

View File

@ -160,11 +160,17 @@ if [[ $GITIDX = 1 ]]; then
# partially staged.
note "Stashing unstaged changes"
git stash -q --keep-index
# For some reasons, shellcheck is not seeing that we can call this
# function from the trap below.
# shellcheck disable=SC2317
function restoregit() {
note "Restoring git state"
git stash pop -q
}
else
# For some reasons, shellcheck is not seeing that we can call this
# function from the trap below.
# shellcheck disable=SC2317
function restoregit() {
true
}

View File

@ -48,6 +48,9 @@ if "${TOR_BINARY}" --list-modules | grep -q "relay: no"; then
fi
tmpdir=
# For some reasons, shellcheck is not seeing that we can call this
# function from the trap below.
# shellcheck disable=SC2317
clean () {
if [ -n "$tmpdir" ] && [ -d "$tmpdir" ]; then
rm -rf "$tmpdir"

View File

@ -46,6 +46,9 @@ if "${TOR_BINARY}" --list-modules | grep -q "relay: no"; then
fi
tmpdir=
# For some reasons, shellcheck is not seeing that we can call this
# function from the trap below.
# shellcheck disable=SC2317
clean () {
if [ -n "$tmpdir" ] && [ -d "$tmpdir" ]; then
rm -rf "$tmpdir"