1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-07 03:50:08 +02:00

🏗 Avoid dependents check for reinstall

This commit is contained in:
2023-05-11 22:42:56 +02:00
parent 458b952787
commit 8b79dc44d0
2 changed files with 4 additions and 1 deletions

View File

@ -102,6 +102,7 @@ class InstallAndUpgradeCommand: BrewCommand {
let command = """
export HOMEBREW_NO_INSTALL_UPGRADE=true; \
export HOMEBREW_NO_INSTALL_CLEANUP=true; \
export HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK=true; \
\(Paths.brew) reinstall \(requiringRepair.joined(separator: " ")) --force
"""

View File

@ -199,9 +199,11 @@ struct PhpFormulaeView: View {
}
} catch let error {
let error = error as! BrewCommandError
let messages = error.log.suffix(5).joined(separator: "\n")
let messages = error.log.suffix(2).joined(separator: "\n")
self.setBusyStatus(false)
await self.handler.refreshPhpVersions(loadOutdated: false)
self.presentErrorAlert(
title: "phpman.failures.install.title".localized,
description: "phpman.failures.install.desc".localized(messages),