From 957921206a8dbbc69c4105f9fb28969beb47c5f6 Mon Sep 17 00:00:00 2001 From: deathaxe Date: Sun, 17 Mar 2024 08:31:19 +0100 Subject: [PATCH] Disable submitting usage information (#226) Installing packages for automated tests is unrelated with real usage. Thus prevent Package Control from submitting usage stats. --- sbin/install_package_control.ps1 | 2 +- sbin/install_package_control.sh | 2 +- scripts/install_package_control.ps1 | 2 +- scripts/install_package_control.sh | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sbin/install_package_control.ps1 b/sbin/install_package_control.ps1 index 4ec2d77c..0d913248 100644 --- a/sbin/install_package_control.ps1 +++ b/sbin/install_package_control.ps1 @@ -16,7 +16,7 @@ try{ if (-not (test-path $PC_SETTINGS)) { write-verbose "creating Package Control.sublime-settings" - "{`"ignore_vcs_packages`": true }" | out-file -filepath $PC_SETTINGS -encoding ascii + "{`"ignore_vcs_packages`": true, `"submit_usage`": false }" | out-file -filepath $PC_SETTINGS -encoding ascii } $PCH_PATH = "$STP\0_install_package_control_helper" diff --git a/sbin/install_package_control.sh b/sbin/install_package_control.sh index 8346603f..72d4b9c1 100644 --- a/sbin/install_package_control.sh +++ b/sbin/install_package_control.sh @@ -50,7 +50,7 @@ fi if [ ! -f "$STP/User/Package Control.sublime-settings" ]; then echo creating Package Control.sublime-settings # make sure Pakcage Control does not complain - echo '{"ignore_vcs_packages": true }' > "$STP/User/Package Control.sublime-settings" + echo '{"ignore_vcs_packages": true, "submit_usage": false }' > "$STP/User/Package Control.sublime-settings" fi PCH_PATH="$STP/0_install_package_control_helper" diff --git a/scripts/install_package_control.ps1 b/scripts/install_package_control.ps1 index 80248cd8..db604a11 100644 --- a/scripts/install_package_control.ps1 +++ b/scripts/install_package_control.ps1 @@ -22,7 +22,7 @@ $PC_SETTINGS = "C:\st\Data\Packages\User\Package Control.sublime-settings" if (-not (test-path $PC_SETTINGS)) { write-verbose "creating Package Control.sublime-settings" - "{`"auto_upgrade`": false }" | out-file -filepath $PC_SETTINGS -encoding ascii + "{`"auto_upgrade`": false, `"submit_usage`": false }" | out-file -filepath $PC_SETTINGS -encoding ascii } $PCH_PATH = "$STP\0_install_package_control_helper" diff --git a/scripts/install_package_control.sh b/scripts/install_package_control.sh index bc92340b..3f123b8f 100644 --- a/scripts/install_package_control.sh +++ b/scripts/install_package_control.sh @@ -51,7 +51,7 @@ if [ ! -f "$STP/User/Package Control.sublime-settings" ]; then echo creating Package Control.sublime-settings [ ! -d "$STP/User" ] && mkdir -p "$STP/User" # make sure Pakcage Control does not complain - echo '{"auto_upgrade": false }' > "$STP/User/Package Control.sublime-settings" + echo '{"auto_upgrade": false, "submit_usage": false }' > "$STP/User/Package Control.sublime-settings" fi PCH_PATH="$STP/0_install_package_control_helper"