diff options
-rw-r--r-- | stdlib/os/debian/apt.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/stdlib/os/debian/apt.go b/stdlib/os/debian/apt.go index 2eb58fa..848294b 100644 --- a/stdlib/os/debian/apt.go +++ b/stdlib/os/debian/apt.go @@ -64,6 +64,9 @@ func packages_list() { slog.Error("dpkg-query", "error", "parsing error: no version after name") os.Exit(1) } + if strings.Contains(name, ":") { // some packages are named with the arch like something:amd64 + name = strings.Split(name, ":")[0] // in this case we want only the name + } packages[name] = s.Text() } } |