mirror of
https://github.com/Jguer/yay.git
synced 2025-12-27 11:06:51 -05:00
Fix building packages with incompatible architectures in makepkg 7.1.0+ (#2741)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user