fix(dep): ensure assume-installed works with depstrings

This commit is contained in:
jguer 2021-08-05 18:02:41 +02:00 committed by J Guerreiro
parent 7dda0fa2f8
commit 186c7a54fe

View File

@ -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
}
}