From ca63a2ec72e997144b1d7f778741f412f11178f7 Mon Sep 17 00:00:00 2001 From: Jared Allard Date: Sun, 23 Jun 2024 14:06:22 -0700 Subject: [PATCH] feat(updater/apt): support bz2 index --- .tools/internal/resolver/apt/apt.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.tools/internal/resolver/apt/apt.go b/.tools/internal/resolver/apt/apt.go index c88b6ff..4956061 100644 --- a/.tools/internal/resolver/apt/apt.go +++ b/.tools/internal/resolver/apt/apt.go @@ -18,6 +18,7 @@ package apt import ( + "compress/bzip2" "compress/gzip" "errors" "fmt" @@ -275,7 +276,8 @@ func parsePackages(p *index) ([]Package, error) { if err != nil { return nil, fmt.Errorf("failed to create gzip reader: %w", err) } - + case ".bz2": + r = io.NopCloser(bzip2.NewReader(r)) case ".xz": r = xz.NewReader(r) case "":