1 |
Could you please add a bug about this, and assing it to |
2 |
tools-portage@g.o? |
3 |
|
4 |
Kind regards, |
5 |
|
6 |
Karl T |
7 |
|
8 |
On Wed, Apr 21, 2004 at 12:44:38PM +1200, oom wrote: |
9 |
> Greets to all, |
10 |
> |
11 |
> Whilst accidentally clobbering a few config files the other day I |
12 |
> noticed a few bugs in the etc-update, namely: |
13 |
> -- |
14 |
> Please select a file to edit by entering the corresponding number. |
15 |
> (-1 to exit) (-3 to auto merge all remaining files) |
16 |
> (-5 to auto-merge AND not use 'mv -i'): -3 |
17 |
> |
18 |
> Replacing /etc/man.conf with /etc/._cfg1000_man.conf |
19 |
> mv: overwrite `/etc/man.conf'? n |
20 |
> Replacing /etc/man.conf with /etc/._cfg1000_man.conf |
21 |
> mv: overwrite `/etc/man.conf'? n |
22 |
> -- |
23 |
> plus i think there should be a backup option available before clobbering |
24 |
> .conf files :-) |
25 |
> |
26 |
> So, see attached diff, or for those to lazy to patch get it at: |
27 |
> http://www.lgw.co.nz/~moo/gentoostuff/etc-update |
28 |
> |
29 |
> Basicly option -3 works properly now, and you can add: |
30 |
> backup="yes" to /etc/etc-update.conf |
31 |
> |
32 |
> cu, |
33 |
> Steve. |
34 |
|
35 |
> --- etc-update 2004-04-21 12:37:50.000000000 +1200 |
36 |
> +++ etc-update.sh 2004-04-20 19:05:41.000000000 +1200 |
37 |
> @@ -256,6 +256,7 @@ |
38 |
> case ${my_input} in |
39 |
> 1) echo "Replacing ${ofile} with ${file}" |
40 |
> mv ${mv_opts} ${file} ${ofile} |
41 |
> + my_input=-1 |
42 |
> continue |
43 |
> ;; |
44 |
> 2) echo "Deleting ${file}" |
45 |
> |
46 |
|
47 |
> -- |
48 |
> gentoo-dev@g.o mailing list |