mirror of
https://github.com/Jguer/yay
synced 2024-08-31 13:49:28 +00:00
fix(dep): ensure assume-installed works with depstrings
This commit is contained in:
parent
7dda0fa2f8
commit
186c7a54fe
|
@ -502,8 +502,9 @@ func (dp *Pool) hasPackage(name string) bool {
|
|||
|
||||
func isInAssumeInstalled(name string, assumeInstalled []string) bool {
|
||||
for _, pkgAndVersion := range assumeInstalled {
|
||||
parts := strings.SplitN(pkgAndVersion, "=", 2)
|
||||
if parts[0] == name {
|
||||
assumeName, _, _ := splitDep(pkgAndVersion)
|
||||
depName, _, _ := splitDep(name)
|
||||
if assumeName == depName {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue