Skip to content

Commit 6ea272c

Browse files
committed
remove new way of getting arch
1 parent 25d52ac commit 6ea272c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎internal/slicer/slicer.go‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,7 @@ func Run(options *RunOptions) (*Report, error) {
236236
// Create new content not coming from packages.
237237
done := make(map[string]bool)
238238
for _, slice := range options.Selection.Slices {
239-
archiveName := options.Selection.Release.Packages[slice.Package].Archive
240-
arch := options.Archives[archiveName].Options().Arch
239+
arch := archives[slice.Package].Options().Arch
241240
for relPath, pathInfo := range slice.Contents {
242241
if len(pathInfo.Arch) > 0 && !slices.Contains(pathInfo.Arch, arch) {
243242
continue

0 commit comments

Comments
 (0)