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