Skip to content

Commit 799cac1

Browse files
niheavenbrian6932
authored andcommitted
fix(database): Skip caching 'deprecated' dir (ScoopInstaller#5949)
1 parent fece753 commit 799cac1

2 files changed

Lines changed: 2 additions & 2 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))
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), [#5948](https://github.com/ScoopInstaller/Scoop/issues/5948))
66
- **core:** New cache filename format ([#5929](https://github.com/ScoopInstaller/Scoop/issues/5929))
77

88
## [v0.4.2](https://github.com/ScoopInstaller/Scoop/compare/v0.4.1...v0.4.2) - 2024-05-14

lib/database.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ function Set-ScoopDB {
202202
$bucketPath = Get-LocalBucket | ForEach-Object { Join-Path $bucketsdir $_ }
203203
$Path = (Get-ChildItem $bucketPath -Filter '*.json' -Recurse).FullName
204204
}
205-
$Path | Where-Object { $_ -notmatch '[\\/]\.' } | ForEach-Object {
205+
$Path | Where-Object { $_ -notmatch '[\\/]\.|[\\/]deprecated[\\/]' } | ForEach-Object {
206206
$manifestRaw = [System.IO.File]::ReadAllText($_)
207207
$manifest = ConvertFrom-Json $manifestRaw -ErrorAction SilentlyContinue
208208
if ($null -ne $manifest.version) {

0 commit comments

Comments
 (0)