]> git.pld-linux.org Git - packages/poldek.git/blob - poldek-show_approx_sets.patch
- reverted
[packages/poldek.git] / poldek-show_approx_sets.patch
1 --- install3/install.c.orig     2010-05-02 22:53:38.974101261 +0200
2 +++ install3/install.c  2010-05-02 22:53:44.817340338 +0200
3 @@ -289,7 +289,7 @@
4  
5  int i3_do_poldek_ts_install(struct poldek_ts *ts)
6  {
7 -    int i, nerr = 0, n, is_particle;
8 +    int i, nerr = 0, n, is_particle, approx_sets = 0;
9      struct i3ctx ictx;
10      tn_array *pkgs = NULL;
11      
12 @@ -319,6 +319,13 @@
13          ts->setop(ts, POLDEK_OP_PARTICLE, 1);
14      
15      i3ctx_init(&ictx, ts);
16 +
17 +    for (i = 0; i < n_array_size(pkgs); i++) {
18 +        struct pkg *pkg = n_array_nth(pkgs, i);
19 +        if (!pkg_is_marked_i(ts->pms, pkg)) 
20 +            continue;
21 +       approx_sets++;
22 +    }
23      
24      for (i = 0; i < n_array_size(pkgs); i++) {
25          struct pkg *pkg = n_array_nth(pkgs, i);
26 @@ -333,10 +340,10 @@
27              if (n > 1) {
28                  if (poldek_VERBOSE > 0) {
29                      poldek_term_printf_c(PRCOLOR_YELLOW,
30 -                                         "Installing set #%d\n", n);
31 +                                         "Installing set #%d of ~%d\n", n, approx_sets);
32                      fflush(stdout);
33                  }
34 -                msgn_f(0, "** Installing set #%d\n", n);
35 +                msgn_f(0, "** Installing set #%d\n of ~%d", n, approx_sets);
36              }
37              
38              n++;
This page took 0.396464 seconds and 3 git commands to generate.