mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 17:17:22 +01: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 New Issue
Block a user