Skip to content

Commit

Permalink
fix a few more places where we should used override provider
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Oct 9, 2024
1 parent e2f6b10 commit d3e9ec8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pydantic_pkgr/binprovider.py
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def get_abspath(self, bin_name: BinName, overrides: Optional[ProviderLookupDict]
abspath = provider.call_handler_for_action(
bin_name=bin_name,
handler_type='abspath',
default_handler=self.on_get_abspath,
default_handler=provider.on_get_abspath,
timeout=timeout,
)
except Exception:
Expand All @@ -565,7 +565,7 @@ def get_version(self, bin_name: BinName, abspath: Optional[HostBinPath]=None, ov
try:
version = provider.call_handler_for_action(
bin_name=bin_name,
default_handler=self.on_get_version,
default_handler=provider.on_get_version,
handler_type='version',
abspath=abspath,
timeout=timeout,
Expand All @@ -592,7 +592,7 @@ def get_packages(self, bin_name: BinName, overrides: Optional[ProviderLookupDict
packages = provider.call_handler_for_action(
bin_name=bin_name,
handler_type='packages',
default_handler=self.on_get_packages,
default_handler=provider.on_get_packages,
timeout=timeout,
)
except Exception:
Expand Down Expand Up @@ -622,7 +622,7 @@ def install(self, bin_name: BinName, overrides: Optional[ProviderLookupDict]=Non
install_log = provider.call_handler_for_action(
bin_name=bin_name,
handler_type='install',
default_handler=self.on_install,
default_handler=provider.on_install,
packages=packages,
timeout=timeout,
)
Expand Down

0 comments on commit d3e9ec8

Please sign in to comment.