]> git.pld-linux.org Git - packages/poldek.git/blame - poldek-fix-multilib.patch
- rel 7; make '.' dir become getcwd() one to prevent system trash on '--install-dist...
[packages/poldek.git] / poldek-fix-multilib.patch
CommitLineData
a7d09531 1Index: install/install.c
2===================================================================
3RCS file: /cvsroot/poldek/poldek/install/install.c,v
4retrieving revision 1.6
5retrieving revision 1.7
6diff -u -r1.6 -r1.7
7--- install/install.c 17 Jun 2007 20:24:47 -0000 1.6
8+++ install/install.c 18 Jun 2007 16:12:43 -0000 1.7
9@@ -11,7 +11,7 @@
10 */
11
12 /*
13- $Id$
14+ $Id$
15 */
16
17 #include <vfile/vfile.h>
18@@ -315,7 +315,8 @@
19 {
20 struct pkg *pkg, *pkg2;
21 int i, n, nmarked = 0;
22-
23+ int multilib = poldek_conf_MULTILIB; /* just for short */
24+
25 if (n_array_size(pkgs) < 2)
26 return n_array_size(pkgs);
27
28@@ -334,14 +335,16 @@
29
30 if (i == n_array_size(pkgs))
31 break;
32-
33+
34 pkg2 = n_array_nth(pkgs, i);
35 while (pkg_cmp_name(pkg, pkg2) == 0) {
36- pkg_unmark(pms, pkg2);
37- DBGF("unmark %s\n", pkg_id(pkg2));
38-
39+ if (!multilib || (multilib && pkg_cmp_arch(pkg, pkg2) == 0)) {
40+ pkg_unmark(pms, pkg2);
41+ DBGF("unmark %s\n", pkg_id(pkg2));
42+ n++;
43+ }
44+
45 i++;
46- n++;
47 if (i == n_array_size(pkgs))
48 break;
49 pkg2 = n_array_nth(pkgs, i);
This page took 0.045961 seconds and 4 git commands to generate.