Skip to content

Commit

Permalink
Update dpkg version handling with nil manifest
Browse files Browse the repository at this point in the history
Signed-off-by: Miaha Cybersec <[email protected]>
  • Loading branch information
Miaha Cybersec authored and Miaha Cybersec committed Aug 2, 2024
1 parent 503e24b commit efa23d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/pkgmgr/dpkg.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func getAPTImageName(manifest *unversioned.UpdateManifest, osVersion string) str
osType := Debian

if manifest == nil || manifest.Metadata.OS.Type == Debian {
if version > "11" {
version = strings.Split("11", ".")[0] + "-slim"
if version > "12" {
version = strings.Split("stable", ".")[0] + "-slim"

Check warning on line 87 in pkg/pkgmgr/dpkg.go

View check run for this annotation

Codecov / codecov/patch

pkg/pkgmgr/dpkg.go#L87

Added line #L87 was not covered by tests
} else {
version = strings.Split(version, ".")[0] + "-slim"
}
Expand Down

0 comments on commit efa23d8

Please sign in to comment.