1
0

feat: combined packages list

This commit is contained in:
dump_stack() 2023-05-15 11:14:59 +00:00
parent 6c1f9f8606
commit eda23b45b9
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -48,6 +48,13 @@ func (dk DebianKernel) HasDependency(pkgname string) bool {
return false return false
} }
func (dk DebianKernel) Packages() (pkgs []snapshot.Package) {
pkgs = append(pkgs, dk.Image)
pkgs = append(pkgs, dk.Headers...)
pkgs = append(pkgs, dk.Dependencies...)
return
}
// use only for inline comparison // use only for inline comparison
func kver(ver string) *semver.Version { func kver(ver string) *semver.Version {
ver = strings.Replace(ver, "~", "-", -1) ver = strings.Replace(ver, "~", "-", -1)