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

This commit is contained in:
Joey Holtzman authored and GitHub committed 2025-12-21 14:35:18 +01:00
1 parent d52526284e
commit 5cdb61fa05
1 file changed
+2 -1
+2 -1
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)
}