Skip to content

Commit

Permalink
feat(updater/apt): support bz2 index
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredallard committed Jun 23, 2024
1 parent 834d8d9 commit ca63a2e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .tools/internal/resolver/apt/apt.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
package apt

import (
"compress/bzip2"
"compress/gzip"
"errors"
"fmt"
Expand Down Expand Up @@ -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 "":
Expand Down

0 comments on commit ca63a2e

Please sign in to comment.