]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ipkg/files/sw.patch
ipkg: add patch courtesy of Phil Blundell to fix handling of locale package dependencies.
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ipkg / files / sw.patch
1 Index: pkg_depends.c
2 ===================================================================
3 RCS file: /cvs/familiar/dist/ipkg/C/pkg_depends.c,v
4 retrieving revision 1.65
5 diff -u -r1.65 pkg_depends.c
6 --- C/pkg_depends.c     16 Sep 2005 20:03:48 -0000      1.65
7 +++ C/pkg_depends.c     17 Apr 2006 18:36:41 -0000
8 @@ -106,6 +108,11 @@
9           satisfier_entry_pkg = NULL;
10  
11           if (compound_depend->type == GREEDY_DEPEND) {
12 +              int old_sw = pkg->state_want;
13 +              /* Mark this package as to-be-installed temporarily,
14 +                 since some of the dependent packages may in turn
15 +                 depend on this one.  */
16 +              pkg->state_want = SW_INSTALL;
17                /* foreach possible satisfier */
18                for (j = 0; j < compound_depend->possibility_count; j++) {
19                     /* foreach provided_by, which includes the abstract_pkg itself */
20 @@ -161,6 +171,7 @@
21                          }
22                     }
23                }
24 +              pkg->state_want = old_sw;
25  
26                continue;
27           }