Gentoo Archives: gentoo-portage-dev

From: Brian Harring <ferringb@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] emerge-webrsync patch
Date: Mon, 09 Jan 2006 12:34:42
Message-Id: 20060109123246.GB26825@nightcrawler.e-centre.net
In Reply to: Re: [gentoo-portage-dev] emerge-webrsync patch by Johannes Fahrenkrug
1 On Wed, Jan 04, 2006 at 09:32:47AM +0100, Johannes Fahrenkrug wrote:
2 > Ok, here's the patch for emerge-delta-webrync to use PORTAGE_NICENESS.
3 > Brian, I hope this is what you had in mind.
4 > I didn't alter the emerge-webrsync patch again, I think it's OK the way
5 > I altered it in the last patch I posted,
6 > but I attached it again anyway.
7
8 Looks good; game to do the same for emerge-webrsync, and add in
9 support for tarsync if it's available?
10
11 Users will feed you cookies for the faster emerge-webrsync ;)
12
13 Offhand... one option, minimal diff (although untested, so might have
14 args wrong)-
15 if [[ -n $PORTAGE_NICENESS ]] && ! [[ -z $WE_ARE_NICED ]]; then
16 export WE_ARE_NICED=1
17 exec nice -n "$PORTAGE_NICENESS" "$0" "$@"
18 fi
19
20 Icky re-execing, but is the usual trick...
21 ~harring

Replies

Subject Author
Re: [gentoo-portage-dev] emerge-webrsync patch Johannes Fahrenkrug <jfa@××××××.de>