Skip to content

Commit c9048ad

Browse files
authored
fix(sqlite): Fix generic class error in PS5 (#5981)
1 parent 5c896e9 commit c9048ad

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
### Features
44

5-
- **scoop-search:** Use SQLite for caching apps to speed up local search ([#5851](https://github.com/ScoopInstaller/Scoop/issues/5851), [#5918](https://github.com/ScoopInstaller/Scoop/issues/5918), [#5946](https://github.com/ScoopInstaller/Scoop/issues/5946), [#5949](https://github.com/ScoopInstaller/Scoop/issues/5949), [#5955](https://github.com/ScoopInstaller/Scoop/issues/5955), [#5966](https://github.com/ScoopInstaller/Scoop/issues/5966), [#5967](https://github.com/ScoopInstaller/Scoop/issues/5967))
5+
- **scoop-search:** Use SQLite for caching apps to speed up local search ([#5851](https://github.com/ScoopInstaller/Scoop/issues/5851), [#5918](https://github.com/ScoopInstaller/Scoop/issues/5918), [#5946](https://github.com/ScoopInstaller/Scoop/issues/5946), [#5949](https://github.com/ScoopInstaller/Scoop/issues/5949), [#5955](https://github.com/ScoopInstaller/Scoop/issues/5955), [#5966](https://github.com/ScoopInstaller/Scoop/issues/5966), [#5967](https://github.com/ScoopInstaller/Scoop/issues/5967), [#5981](https://github.com/ScoopInstaller/Scoop/issues/5981))
66
- **core:** New cache filename format ([#5929](https://github.com/ScoopInstaller/Scoop/issues/5929))
77

88
### Bug Fixes

libexec/scoop-update.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function Sync-Scoop {
7373
# check for git
7474
if (!(Test-GitAvailable)) { abort "Scoop uses Git to update itself. Run 'scoop install git' and try again." }
7575

76-
Write-Host "Updating Scoop..."
76+
Write-Host 'Updating Scoop...'
7777
$currentdir = versiondir 'scoop' 'current'
7878
if (!(Test-Path "$currentdir\.git")) {
7979
$newdir = "$currentdir\..\new"
@@ -181,8 +181,8 @@ function Sync-Bucket {
181181

182182
$buckets | Where-Object { !$_.valid } | ForEach-Object { Write-Host "'$($_.name)' is not a git repository. Skipped." }
183183

184-
$updatedFiles = [System.Collections.Generic.SynchronizedCollection[string]]::new()
185-
$removedFiles = [System.Collections.Generic.SynchronizedCollection[psobject]]::new()
184+
$updatedFiles = [System.Collections.ArrayList]::Synchronized([System.Collections.ArrayList]::new())
185+
$removedFiles = [System.Collections.ArrayList]::Synchronized([System.Collections.ArrayList]::new())
186186
if ($PSVersionTable.PSVersion.Major -ge 7) {
187187
# Parallel parameter is available since PowerShell 7
188188
$buckets | Where-Object { $_.valid } | ForEach-Object -ThrottleLimit 5 -Parallel {

0 commit comments

Comments
 (0)