]> git.pld-linux.org Git - packages/poldek.git/blame - poldek-multiarch-x32.patch
- 2021 snap
[packages/poldek.git] / poldek-multiarch-x32.patch
CommitLineData
7a518e0e 1diff --git a/pkg.c b/pkg.c
2index 9e1bf9c..ed62efd 100644
3--- a/pkg.c
4+++ b/pkg.c
5@@ -74,8 +74,11 @@ int pkgmod_register_arch(const char *arch)
6
7 an_arch->score = pm_architecture_score(arch);
8 n_assert(an_arch->score >= 0);
9- if (!an_arch->score) /* make it most less preferred */
10- an_arch->score = INT_MAX - 1;
11+ if (an_arch->score == 0) {
12+ /* make it most less preferred, but differ from other zero-scored
13+ archs (i686 and x86_64 on x32 case) */
14+ an_arch->score = INT_MAX - n_array_size(architecture_a) - 1;
15+ }
16 DBGF("register %s with score %d\n", arch, an_arch->score);
17
18 memcpy(an_arch->arch, arch, len + 1);
This page took 0.0390200000000001 seconds and 4 git commands to generate.