mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-06 19:40:08 +02:00
🐛 Fix issue with formulae upgrades for tap
This commit is contained in:
@ -111,7 +111,7 @@ struct Constants {
|
|||||||
static let FrequentlyAskedQuestions = URL(
|
static let FrequentlyAskedQuestions = URL(
|
||||||
string: "https://phpmon.app/faq"
|
string: "https://phpmon.app/faq"
|
||||||
)!
|
)!
|
||||||
|
|
||||||
static let WikiPhpUnavailable = URL(
|
static let WikiPhpUnavailable = URL(
|
||||||
string: "https://phpmon.app/php-unavailable"
|
string: "https://phpmon.app/php-unavailable"
|
||||||
)!
|
)!
|
||||||
|
@ -39,7 +39,7 @@ class BrewPhpFormulaeHandler: HandlesBrewPhpFormulae {
|
|||||||
OutdatedFormulae.self,
|
OutdatedFormulae.self,
|
||||||
from: rawJsonText
|
from: rawJsonText
|
||||||
).formulae.filter({ formula in
|
).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
|
fullVersion = install.isPreRelease ? "\(fullVersion!)-dev" : fullVersion
|
||||||
|
|
||||||
upgradeVersion = outdated?.first(where: { formula in
|
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
|
})?.current_version
|
||||||
|
|
||||||
isPrerelease = install.isPreRelease
|
isPrerelease = install.isPreRelease
|
||||||
|
Reference in New Issue
Block a user