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:
@ -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"
|
||||
)!
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user