mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 10:36:45 +01:00
fix: CPE generation for django (#2068)
Signed-off-by: witchcraze <witchcraze@gmail.com>
This commit is contained in:
parent
dd09e0362e
commit
cedfa05e93
@ -183,6 +183,11 @@ var defaultCandidateAdditions = buildCandidateLookup(
|
|||||||
candidateKey{PkgName: "pip"},
|
candidateKey{PkgName: "pip"},
|
||||||
candidateAddition{AdditionalVendors: []string{"pypa"}},
|
candidateAddition{AdditionalVendors: []string{"pypa"}},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
pkg.PythonPkg,
|
||||||
|
candidateKey{PkgName: "Django"},
|
||||||
|
candidateAddition{AdditionalVendors: []string{"djangoproject"}},
|
||||||
|
},
|
||||||
// Alpine packages
|
// Alpine packages
|
||||||
{
|
{
|
||||||
pkg.ApkPkg,
|
pkg.ApkPkg,
|
||||||
|
|||||||
@ -896,6 +896,14 @@ func TestCandidateVendor(t *testing.T) {
|
|||||||
},
|
},
|
||||||
expected: []string{"apache"},
|
expected: []string{"apache"},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: "Django",
|
||||||
|
p: pkg.Package{
|
||||||
|
Name: "Django",
|
||||||
|
Type: pkg.PythonPkg,
|
||||||
|
},
|
||||||
|
expected: []string{"djangoproject" /* <-- known good names | default guess --> */, "Django"},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, test := range tests {
|
for _, test := range tests {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user