Skip to content

Commit

Permalink
remove new way of getting arch
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Jun 18, 2024
1 parent 25d52ac commit 6ea272c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/slicer/slicer.go
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,7 @@ func Run(options *RunOptions) (*Report, error) {
// Create new content not coming from packages.
done := make(map[string]bool)
for _, slice := range options.Selection.Slices {
archiveName := options.Selection.Release.Packages[slice.Package].Archive
arch := options.Archives[archiveName].Options().Arch
arch := archives[slice.Package].Options().Arch
for relPath, pathInfo := range slice.Contents {
if len(pathInfo.Arch) > 0 && !slices.Contains(pathInfo.Arch, arch) {
continue
Expand Down

0 comments on commit 6ea272c

Please sign in to comment.