Rename PackageInfoList to Packages

This commit is contained in:
Kota Kanbe
2017-05-06 04:59:12 +09:00
committed by kota kanbe
parent f26b61d773
commit d626cc8a8b
17 changed files with 168 additions and 189 deletions

View File

@@ -473,8 +473,8 @@ type distroLink struct {
// }
// }
// addPackageInfos add package information related the CVE to table
func addPackageInfos(table *uitable.Table, packs []models.PackageInfo) *uitable.Table {
// addPackages add package information related the CVE to table
func addPackages(table *uitable.Table, packs []models.Package) *uitable.Table {
for i, p := range packs {
var title string
if i == 0 {
@@ -515,7 +515,7 @@ func formatChangelogs(r models.ScanResult) string {
return strings.Join(buf, "\n")
}
func formatOneChangelog(p models.PackageInfo) string {
func formatOneChangelog(p models.Package) string {
buf := []string{}
if p.NewVersion == "" {
return ""