mirror of
https://github.com/anchore/syft.git
synced 2026-08-19 16:48:27 +02:00
fix: conan libxml2 CPE (#5016)
Signed-off-by: Rez Moss <hi@rezmoss.com>
This commit is contained in:
parent
2805655ab0
commit
ad828d659f
@ -508,6 +508,11 @@ var defaultCandidateAdditions = buildCandidateLookup(
|
|||||||
candidateKey{PkgName: "poco"},
|
candidateKey{PkgName: "poco"},
|
||||||
candidateAddition{AdditionalVendors: []string{"pocoproject"}},
|
candidateAddition{AdditionalVendors: []string{"pocoproject"}},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pkg.ConanPkg,
|
||||||
|
candidateKey{PkgName: "libxml2"},
|
||||||
|
candidateAddition{AdditionalVendors: []string{"xmlsoft"}},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
var defaultCandidateRemovals = buildCandidateRemovalLookup(
|
var defaultCandidateRemovals = buildCandidateRemovalLookup(
|
||||||
|
|||||||
@ -232,3 +232,8 @@ func Test_findProductsToRemove(t *testing.T) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func Test_defaultCandidateAdditions_conan_libxml2(t *testing.T) {
|
||||||
|
vendors := findAdditionalVendors(defaultCandidateAdditions, pkg.ConanPkg, "libxml2", "")
|
||||||
|
assert.Contains(t, vendors, "xmlsoft")
|
||||||
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user