1 |
Brian Harring wrote: |
2 |
|
3 |
>Looks good; game to do the same for emerge-webrsync, and add in |
4 |
>support for tarsync if it's available? |
5 |
> |
6 |
> |
7 |
Done. Please look at the patches, I hope this is what you had in mind. |
8 |
I basically copied it from emerge-delta-webrsync. |
9 |
|
10 |
>Users will feed you cookies for the faster emerge-webrsync ;) |
11 |
> |
12 |
> |
13 |
Hmmm... I like cookies ;-) |
14 |
|
15 |
>Offhand... one option, minimal diff (although untested, so might have |
16 |
>args wrong)- |
17 |
>if [[ -n $PORTAGE_NICENESS ]] && ! [[ -z $WE_ARE_NICED ]]; then |
18 |
> export WE_ARE_NICED=1 |
19 |
> exec nice -n "$PORTAGE_NICENESS" "$0" "$@" |
20 |
>fi |
21 |
> |
22 |
> |
23 |
Ok, put it in emerge-delta-webrsync and emerge-webrsync. I had to change |
24 |
|
25 |
if [[ -n $PORTAGE_NICENESS ]] && ! [[ -z $WE_ARE_NICED ]]; then |
26 |
|
27 |
to |
28 |
|
29 |
if [[ -n $PORTAGE_NICENESS ]] && [[ -z $WE_ARE_NICED ]]; then |
30 |
|
31 |
(otherwise it would have read AND NOT $WE_ARE_NICED is NOT set...) |
32 |
|
33 |
>Icky re-execing, but is the usual trick... |
34 |
> |
35 |
> |
36 |
Seems to work for me. |
37 |
If these patches should get accepted and I should get credited, please |
38 |
say "Johannes Fahrenkrug (jfahrenkrug_gmail_com)". |
39 |
Thank you and I'm looking forward to hearing what you think. |
40 |
|
41 |
- Johannes. |