fix: make sure we only remove the package extension
This commit is contained in:
parent
fa5d0adb39
commit
14320faca8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user