Git init
[external/insserv.git] / debian / patches / 70_req_start_all_depends.patch
1 Purpose: Correct dependency information written to .depend.* files
2          for scripts which declare Required-Start: $all
3 Fixes:   nil
4 Status:  Applied upstream.
5 ---
6 Index: insserv/insserv.c
7 ===================================================================
8 --- insserv.orig/insserv.c      2009-09-26 22:35:39.000000000 +0200
9 +++ insserv/insserv.c   2009-09-26 22:35:42.000000000 +0200
10 @@ -776,9 +776,6 @@
11             continue;
12  #endif /* not MINIMAL_RULES */
13  
14 -       if (list_empty(&serv->sort.req))
15 -           continue;
16 -
17         if (serv->start->lvl & LVL_BOOT)
18             out = boot;
19         else
20 @@ -820,6 +817,10 @@
21                 fprintf(out, " %s", name);
22             }
23         } else {
24 +
25 +           if (list_empty(&serv->sort.req))
26 +               continue;
27 +
28             np_list_for_each(pos, &serv->sort.req) {
29                 req_t * req = getreq(pos);
30                 service_t * dep = req->serv;