Skip to content

Commit

Permalink
Refactor keyring block
Browse files Browse the repository at this point in the history
  • Loading branch information
am11 authored and akoeplinger committed Jan 5, 2025
1 parent 3493dfb commit ffbd297
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions eng/common/cross/build-rootfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,14 @@ elif [[ "$__CodeName" == "haiku" ]]; then
popd
rm -rf "$__RootfsDir/tmp"
elif [[ -n "$__CodeName" ]]; then
__UpdateOptions=
if [[ "$__SkipSigCheck" == "0" ]]; then
__Keyring="$__Keyring --force-check-gpg"
else
__Keyring=
__UpdateOptions="--allow-unauthenticated --allow-insecure-repositories"
fi

if [[ "$__SkipEmulation" == "1" ]]; then
if [[ -z "$AR" ]]; then
if command -v ar &>/dev/null; then
Expand All @@ -797,10 +805,6 @@ elif [[ -n "$__CodeName" ]]; then
# shellcheck disable=SC2086
suites="$__CodeName $__DebianSuites $(echo $__UbuntuSuites | xargs -n 1 | xargs -I {} echo -n "$__CodeName-{} ")"

if [[ "$__SkipSigCheck" == "0" ]]; then
__Keyring="$__Keyring --force-check-sig"
fi

PYTHON=${PYTHON_EXECUTABLE:-python3}

# shellcheck disable=SC2086,SC2046
Expand All @@ -816,14 +820,6 @@ elif [[ -n "$__CodeName" ]]; then
exit 0
fi

__UpdateOptions=
if [[ "$__SkipSigCheck" == "0" ]]; then
__Keyring="$__Keyring --force-check-gpg"
else
__Keyring=
__UpdateOptions="--allow-unauthenticated --allow-insecure-repositories"
fi

# shellcheck disable=SC2086
echo running debootstrap "--variant=minbase" $__Keyring --arch "$__UbuntuArch" "$__CodeName" "$__RootfsDir" "$__UbuntuRepo"

Expand Down

0 comments on commit ffbd297

Please sign in to comment.