Fix a bug of fill oval information of Ubuntu

This commit is contained in:
kota kanbe
2017-07-26 18:49:05 +09:00
parent 9b6d84def6
commit b1428b6758
2 changed files with 3 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ type DebianBase struct{ Base }
// fillFromOvalDB returns scan result after updating CVE info by OVAL
func (o DebianBase) fillFromOvalDB(r *models.ScanResult) error {
ovalconf.Conf.DebugSQL = config.Conf.DebugSQL
ovalconf.Conf.DBType = config.Conf.OvalDBType
ovalconf.Conf.DBPath = config.Conf.OvalDBPath
if ovalconf.Conf.DBType == "sqlite3" {
@@ -33,7 +34,7 @@ func (o DebianBase) fillFromOvalDB(r *models.ScanResult) error {
var err error
var ovaldb db.DB
if ovaldb, err = db.NewDB(
ovalconf.Debian,
r.Family,
ovalconf.Conf.DBType,
ovalconf.Conf.DBPath,
ovalconf.Conf.DebugSQL,

View File

@@ -57,6 +57,7 @@ func (o RedHatBase) fillFromOvalDB(r *models.ScanResult) error {
func (o RedHatBase) getDefsByPackNameFromOvalDB(osRelease string,
packs models.Packages) (relatedDefs []ovalmodels.Definition, err error) {
ovalconf.Conf.DebugSQL = config.Conf.DebugSQL
ovalconf.Conf.DBType = config.Conf.OvalDBType
if ovalconf.Conf.DBType == "sqlite3" {
ovalconf.Conf.DBPath = config.Conf.OvalDBPath