1
0
Fork 0

feat: combined packages list

timestamps
dump_stack() 2023-05-15 11:14:59 +00:00
parent 6c1f9f8606
commit eda23b45b9
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 7 additions and 0 deletions

View File

@ -48,6 +48,13 @@ func (dk DebianKernel) HasDependency(pkgname string) bool {
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
func kver(ver string) *semver.Version {
ver = strings.Replace(ver, "~", "-", -1)