]> git.pld-linux.org Git - packages/poldek.git/blob - poldek-bug139.patch
This commit was manufactured by cvs2git to create branch 'AC-DEVEL'.
[packages/poldek.git] / poldek-bug139.patch
1 Index: cli/cli.c
2 ===================================================================
3 RCS file: /cvsroot/poldek/poldek/cli/cli.c,v
4 retrieving revision 1.44
5 diff -u -r1.44 cli/cli.c
6 --- cli/cli.c   3 Feb 2008 18:01:59 -0000       1.44
7 +++ cli/cli.c   20 Apr 2008 11:41:01 -0000
8 @@ -731,9 +731,12 @@
9                           const char *cmdline, struct cmd_pipe *cmd_pipe) 
10  {
11      tn_array              *cmd_chain;
12 -    int                   rc = 0, i;
13 +    int                   rc = 0, i, _verbose;
14  
15      DBGF("%s\n", cmdline);
16 +
17 +    /* keep verbose setting as it changes when '-q' option is used */
18 +    _verbose = poldek_verbose ();
19      
20      cmd_chain = poclidek_prepare_cmdline(cctx, cmdline);
21      if (cmd_chain == NULL)
22 @@ -753,7 +756,10 @@
23          else
24              rc = poclidek_exec_cmd_ent(cctx, ts, ent, NULL);
25      }
26 -    
27 +
28 +    /* restore verbose setting */
29 +    poldek_set_verbose (_verbose);
30 +
31      n_array_free(cmd_chain);
32      return rc;
33  }
34 Index: cli/shell.c
35 ===================================================================
36 RCS file: /cvsroot/poldek/poldek/cli/shell.c,v
37 retrieving revision 1.34
38 diff -u -r1.34 cli/shell.c
39 --- cli/shell.c 3 Feb 2008 18:01:59 -0000       1.34
40 +++ cli/shell.c 20 Apr 2008 11:41:02 -0000
41 @@ -405,8 +405,6 @@
42                  
43          s = n_str_strip_ws(line);
44          if (*s) {
45 -            int _verbose = poldek_verbose();
46 -            
47              shInCmd = 1;
48              DBGF("(%s)\n", s);
49  
50 @@ -417,8 +415,6 @@
51              sigint_reset();
52              shDone = 0;
53              shInCmd = 0;
54 -
55 -            poldek_set_verbose(_verbose);
56          }
57          free(line);
58          
This page took 0.11469 seconds and 3 git commands to generate.