Skip to content

remove duplicate record - 3.4 main

Created by: ldelossa

When parsing the secdb with the following yaml structure:

// Details define a package's name and security fixes for said package
type Details struct {
	Name string `yaml:"name"`
	// fixed package version string mapped to an array of CVE ids affecting the package
	Secfixes map[string][]string `yaml:"secfixes"`
}

// Package wraps the Details
type Package struct {
	Pkg Details `yaml:pkg`
}

// SecurityDB is the yaml security database structure
type SecurityDB struct {
	Distroversion string    `yaml:"distroversion"`
	Reponame      string    `yaml:"reponame"`
	Urlprefix     string    `yaml:"urlprefix"`
	Apkurl        string    `yaml:"apkurl"`
	Packages      []Package `yaml:"packages"`
}

a duplicate record in 3.4 main breaks the yaml parser. It is the only secdb which has this issue. I'm assuming in this PR this is in error.

Merge request reports