Skip to content

Commit

Permalink
change Raspbian use Debian OVAL
Browse files Browse the repository at this point in the history
  • Loading branch information
MaineK00n committed Jul 27, 2020
1 parent 71b5469 commit 8afbb01
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ const (
// Ubuntu is
Ubuntu = "ubuntu"

// Raspbian is
Raspbian = "raspbian"

// Ubuntu14 is Ubuntu Trusty
Ubuntu14 = "trusty"

Expand Down
4 changes: 4 additions & 0 deletions db/rdb/rdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ func (d *Driver) GetByPackName(family, osVer, packName, arch string) ([]models.D
if family == c.CentOS {
family = c.RedHat
}
if family == c.Raspbian {
family = c.Debian
}

if _, ok := ovalMap[family]; !ok {
return nil, fmt.Errorf("Unsupport family: %s", family)
}
Expand Down

0 comments on commit 8afbb01

Please sign in to comment.