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
if [ "$WRITE_SOURCE" != 'no' ]; then
# Check if apt modernize-sources is available.
if apt modernize-sources --help >/dev/null 2>&1; then
# Write repository in deb822 format with Signed-By.
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"
cat <<EOF >> "$CODE_SOURCE_PART_DEB822"
cat <<EOF >> "$CODE_SOURCE_PART_DEB822"
Types: deb
URIs: https://packages.microsoft.com/repos/code
Suites: stable
@@ -99,13 +97,8 @@ Components: main
Architectures: @@ARCHITECTURE@@
Signed-By: $CODE_TRUSTED_PART
EOF
if [ -f "$CODE_SOURCE_PART" ]; then
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
if [ -f "$CODE_SOURCE_PART" ]; then
rm -f "$CODE_SOURCE_PART"
fi
# Sourced from https://packages.microsoft.com/keys/microsoft.asc