mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 18:49:00 +01:00
Add yum repository registration
This is currently disabled until the repo is signed Part of #229
This commit is contained in:
@@ -30,6 +30,16 @@ if [ "@@NAME@@" = "code" ]; then
|
||||
rm -f /usr/local/bin/code
|
||||
fi
|
||||
|
||||
# Register yum repository
|
||||
# TODO: #229: Enable once the yum repository is signed
|
||||
#if [ "@@NAME@@" != "code-oss" ]; then
|
||||
# if [ -d "/etc/yum.repos.d" ]; then
|
||||
# REPO_FILE=/etc/yum.repos.d/@@NAME@@.repo
|
||||
# rm -f $REPO_FILE
|
||||
# echo -e "[@@NAME@@]\nname=@@NAME_LONG@@\nbaseurl=https://vscode-update.azurewebsites.net/api/rpm/@@QUALITY@@/@@ARCHITECTURE@@/rpm" > $REPO_FILE
|
||||
# fi
|
||||
#fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user