Fix building packages with incompatible architectures in makepkg 7.1.0+ (#2741)

This commit is contained in:
Joey Holtzman
2025-12-21 07:35:18 -06:00
committed by GitHub
parent d52526284e
commit 5cdb61fa05

View File

@@ -127,8 +127,9 @@ func asexp(ctx context.Context,
func parsePackageList(ctx context.Context, cmdBuilder exe.ICmdBuilder,
dir string,
) (pkgdests map[string]string, pkgVersion string, err error) {
args := []string{"--packagelist", "--ignorearch"}
stdout, stderr, err := cmdBuilder.Capture(
cmdBuilder.BuildMakepkgCmd(ctx, dir, "--packagelist"))
cmdBuilder.BuildMakepkgCmd(ctx, dir, args...))
if err != nil {
return nil, "", fmt.Errorf("%s %w", stderr, err)
}