Gentoo Archives: gentoo-dev

From: Ulrich Mueller <ulm@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] EAPI5: require ebuilds/eclasses to not use any vars/funcs prefixed with __
Date: Thu, 13 Sep 2012 06:23:39
Message-Id: 20561.31658.907933.499615@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] EAPI5: require ebuilds/eclasses to not use any vars/funcs prefixed with __ by Mike Frysinger
1 >>>>> On Thu, 13 Sep 2012, Mike Frysinger wrote:
2
3 >> Maybe it's better to add a --{save,restore} option pair:
4 >>
5 >> addwrite --save /foo/bar
6 >> # some commands writing to /foo/bar here
7 >> addwrite --restore # restore last saved state
8 >>
9 >> or --{push,pop} to allow for nested calls, but maybe that would be
10 >> overkill.
11
12 > not sure how your --save/--restore isn't a --push/--pop already
13
14 --save/--restore would keep one saved state (which would be
15 overwritten with the next --save), whereas --push/--pop would maintain
16 a stack.
17
18 Ulrich

Replies