change raspberry pi os use debian oval at report

This commit is contained in:
MaineK00n
2020-07-14 22:08:16 +09:00
parent b169ef622e
commit 3dab5e2b2c
3 changed files with 7 additions and 4 deletions

View File

@@ -242,6 +242,10 @@ func getDefsByPackNameFromOvalDB(driver db.DB, r *models.ScanResult) (relatedDef
})
}
if r.Family == "raspbian" {
r.Family = "debian"
}
for _, req := range requests {
definitions, err := driver.GetByPackName(r.Family, r.Release, req.packName, req.arch)
if err != nil {