1
0
Fork 0

Fix missing error check

master
dump_stack() 2023-05-11 20:45:53 +00:00
parent 9c563ca68b
commit e123bf258c
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC
1 changed files with 3 additions and 0 deletions

View File

@ -37,6 +37,9 @@ func GetDebianKernel(version string) (dk DebianKernel, err error) {
regex := `^linux-(image|headers)-[a-z0-9\.\-]*-(amd64|amd64-unsigned)$`
packages, err := snapshot.Packages("linux", version, "amd64", regex)
if err != nil {
return
}
if len(packages) == 0 {
err = ErrNoBinaryPackages
return