Skip to content

Commit 70bb069

Browse files
committed
Add warning about aria2 usage to install/update commands
1 parent f9d81d8 commit 70bb069

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

libexec/scoop-install.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ $skip | Where-Object { $explicit_apps -contains $_} | ForEach-Object {
119119
}
120120

121121
$suggested = @{};
122+
if(aria2_enabled) {
123+
warn "Scoop uses 'aria2c' for multi-connection downloads."
124+
warn "Should it cause issues, run 'scoop config aria2-enabled false' to disable it."
125+
}
122126
$apps | ForEach-Object { install_app $_ $architecture $global $suggested $use_cache $check_hash }
123127

124128
show_suggestions $suggested

libexec/scoop-update.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,10 @@ if(!$apps) {
209209

210210
$suggested = @{};
211211
# # $outdated is a list of ($app, $global) tuples
212+
if(aria2_enabled) {
213+
warn "Scoop uses 'aria2c' for multi-connection downloads."
214+
warn "Should it cause issues, run 'scoop config aria2-enabled false' to disable it."
215+
}
212216
$outdated | ForEach-Object { update @_ $quiet $independent $suggested $use_cache $check_hash }
213217
}
214218

0 commit comments

Comments
 (0)