ref: rename downloadBottle

This commit is contained in:
relikd
2025-08-31 12:25:00 +02:00
parent d5cbeaa360
commit 38fb958b23

View File

@@ -177,9 +177,10 @@ def cli_fetch(args: ArgParams) -> None:
Log.info(' tag:', tag) Log.info(' tag:', tag)
Log.info(' digest:', digest) Log.info(' digest:', digest)
pth = Brew.download(args.package, tag or digest, digest, askOverwrite=True) path = Brew.downloadBottle(args.package, tag or digest, digest,
askOverwrite=True)
Log.info('==> ', end='') Log.info('==> ', end='')
Log.main(pth) Log.main(path)
# https://docs.brew.sh/Manpage#list-ls-options-installed_formulainstalled_cask- # https://docs.brew.sh/Manpage#list-ls-options-installed_formulainstalled_cask-
@@ -1094,7 +1095,7 @@ class Brew:
onlineVersion, ', '.join(local.verAll))) onlineVersion, ', '.join(local.verAll)))
@staticmethod @staticmethod
def download( def downloadBottle(
pkg: str, version: str, digest: str, pkg: str, version: str, digest: str,
*, askOverwrite: bool = False, dryRun: bool = False *, askOverwrite: bool = False, dryRun: bool = False
) -> str: ) -> str:
@@ -1443,7 +1444,7 @@ class InstallQueue:
Log.info('==> Download ...') Log.info('==> Download ...')
Log.beginCounter(len(self.downloadQueue)) Log.beginCounter(len(self.downloadQueue))
for x in self.downloadQueue: for x in self.downloadQueue:
self.installQueue.append(Brew.download( self.installQueue.append(Brew.downloadBottle(
x.package, x.version, x.digest, dryRun=self.dryRun)) x.package, x.version, x.digest, dryRun=self.dryRun))
Log.endCounter() Log.endCounter()