Skip to content

Commit f21501c

Browse files
niheavenbrian6932
authored andcommitted
fix(database): Update cache when adding bucket (ScoopInstaller#5946)
1 parent 1484982 commit f21501c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
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))
6-
- **core:** New cache filename format ([#5929](https://github.com/ScoopInstaller/Scoop/issues/5929)
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))
6+
- **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
99

lib/database.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function Set-ScoopDB {
171171
$bucketPath = Get-LocalBucket | ForEach-Object { Find-BucketDirectory $_ }
172172
$Path = (Get-ChildItem $bucketPath -Filter '*.json' -Recurse).FullName
173173
}
174-
$Path | ForEach-Object {
174+
$Path | Where-Object { $_ -notmatch '[\\/]\.' } | ForEach-Object {
175175
$manifestRaw = [System.IO.File]::ReadAllText($_)
176176
$manifest = ConvertFrom-Json $manifestRaw -ErrorAction SilentlyContinue
177177
if ($null -ne $manifest.version) {

0 commit comments

Comments
 (0)