mirror of
https://github.com/microsoft/vscode.git
synced 2026-02-15 07:28:05 +00:00
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user