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

🐛 Fix issue with formulae upgrades for tap

This commit is contained in:
2024-11-25 14:04:17 +01:00
parent e3fa34d4f9
commit a22346ed35
2 changed files with 4 additions and 3 deletions

View File

@ -111,7 +111,7 @@ struct Constants {
static let FrequentlyAskedQuestions = URL(
string: "https://phpmon.app/faq"
)!
static let WikiPhpUnavailable = URL(
string: "https://phpmon.app/php-unavailable"
)!

View File

@ -39,7 +39,7 @@ class BrewPhpFormulaeHandler: HandlesBrewPhpFormulae {
OutdatedFormulae.self,
from: rawJsonText
).formulae.filter({ formula in
formula.name.starts(with: "php")
formula.name.starts(with: "shivammathur/php/php") || formula.name.starts(with: "php")
})
}
@ -53,7 +53,8 @@ class BrewPhpFormulaeHandler: HandlesBrewPhpFormulae {
fullVersion = install.isPreRelease ? "\(fullVersion!)-dev" : fullVersion
upgradeVersion = outdated?.first(where: { formula in
return formula.name == install.formulaName
return formula.name.replacingOccurrences(of: "shivammathur/php/", with: "")
== install.formulaName.replacingOccurrences(of: "shivammathur/php/", with: "")
})?.current_version
isPrerelease = install.isPreRelease