1
0

fix: make sure we only remove the package extension

This commit is contained in:
dump_stack() 2023-05-23 09:22:50 +00:00
parent fa5d0adb39
commit 14320faca8
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -67,7 +67,7 @@ func (d Debian) Packages() (packages []string, err error) {
} }
for _, dk := range kernels { for _, dk := range kernels {
p := strings.Replace(dk.Image.Deb.Name, ".deb", "", -1) p := dk.Image.Deb.Name[:len(dk.Image.Deb.Name)-4] // w/o .deb
var kr Release var kr Release
kr, err = kernelRelease(p) kr, err = kernelRelease(p)