mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-25 11:08:51 +01:00
Signed-off-by: Matthias Breithaupt <m.breithaupt@vogl-electronic.com>
This commit is contained in:
@@ -14,3 +14,22 @@ fi
|
||||
if hash update-mime-database 2>/dev/null; then
|
||||
update-mime-database /usr/share/mime
|
||||
fi
|
||||
|
||||
RET=true
|
||||
if [ -e '/usr/share/debconf/confmodule' ]; then
|
||||
. /usr/share/debconf/confmodule
|
||||
db_get @@NAME@@/add-microsoft-repo || true
|
||||
fi
|
||||
if [ "$RET" = "true" ]; then
|
||||
eval $(apt-config shell APT_SOURCE_PARTS Dir::Etc::sourceparts/d)
|
||||
CODE_SOURCE_PART=${APT_SOURCE_PARTS}vscode.list
|
||||
rm -f $CODE_SOURCE_PART
|
||||
|
||||
eval $(apt-config shell APT_TRUSTED_PARTS Dir::Etc::trustedparts/d)
|
||||
CODE_TRUSTED_PART=${APT_TRUSTED_PARTS}microsoft.gpg
|
||||
rm -f $CODE_TRUSTED_PART
|
||||
fi
|
||||
|
||||
if [ "$1" = "purge" ] && [ -e '/usr/share/debconf/confmodule' ]; then
|
||||
db_purge
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user