fix: switch everyone to DEB822 (#260171)

Fixes #259302
This commit is contained in:
Raymond Zhao
2025-08-06 11:52:08 -07:00
committed by GitHub
parent 4c5f085f77
commit d499211732

View File

@@ -86,12 +86,10 @@ if [ "@@NAME@@" != "code-oss" ]; then
fi fi
if [ "$WRITE_SOURCE" != 'no' ]; then if [ "$WRITE_SOURCE" != 'no' ]; then
# Check if apt modernize-sources is available. # Write repository in deb822 format with Signed-By.
if apt modernize-sources --help >/dev/null 2>&1; then echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# Write repository in deb822 format with Signed-By.
echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost." > "$CODE_SOURCE_PART_DEB822" # You may comment out this entry, but any other modifications may be lost." > "$CODE_SOURCE_PART_DEB822"
cat <<EOF >> "$CODE_SOURCE_PART_DEB822" cat <<EOF >> "$CODE_SOURCE_PART_DEB822"
Types: deb Types: deb
URIs: https://packages.microsoft.com/repos/code URIs: https://packages.microsoft.com/repos/code
Suites: stable Suites: stable
@@ -99,13 +97,8 @@ Components: main
Architectures: @@ARCHITECTURE@@ Architectures: @@ARCHITECTURE@@
Signed-By: $CODE_TRUSTED_PART Signed-By: $CODE_TRUSTED_PART
EOF EOF
if [ -f "$CODE_SOURCE_PART" ]; then if [ -f "$CODE_SOURCE_PART" ]; then
rm -f "$CODE_SOURCE_PART" rm -f "$CODE_SOURCE_PART"
fi
else
echo "### THIS FILE IS AUTOMATICALLY CONFIGURED ###
# You may comment out this entry, but any other modifications may be lost.
deb [arch=@@ARCHITECTURE@@] https://packages.microsoft.com/repos/code stable main" > $CODE_SOURCE_PART
fi fi
# Sourced from https://packages.microsoft.com/keys/microsoft.asc # Sourced from https://packages.microsoft.com/keys/microsoft.asc