Skip to content

Commit

Permalink
Fix sourcing data for sourceinfo params
Browse files Browse the repository at this point in the history
  • Loading branch information
ethanbergstrom committed Mar 16, 2024
1 parent 3ad94f3 commit 82b5ed3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/AnyPackage.Homebrew.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ class HomebrewProvider : PackageProvider, IGetSource, ISetSource, IGetPackage, I
}

[void] UnregisterSource([SourceRequest] $Request) {
$source = Get-HomebrewTap | Where-Object {$_.Name -Like $Request.Name}
$source = Get-HomebrewTap | Where-Object {$_.Name -Like $Request.Name} | Get-HomebrewTapInfo
Croze\Unregister-HomebrewTap -Name $Request.Name
$sourceInfo = [PackageSourceInfo]::new($source.Name, ($_.Remote ?? $_.Path), $this.ProviderInfo)
$sourceInfo = [PackageSourceInfo]::new($source.Name, ($source.Remote ?? $source.Path), $this.ProviderInfo)
$Request.WriteSource($sourceInfo)
}

Expand Down

0 comments on commit 82b5ed3

Please sign in to comment.