1 |
On Sat, 15 Mar 2008 00:20:31 -0700 |
2 |
Donnie Berkholz <dberkholz@g.o> wrote: |
3 |
|
4 |
> On 06:03 Sun 09 Mar , Rajiv Aaron Manglani (rajiv) wrote: |
5 |
> > 1.1 sys-power/nut/nut-2.2.1.ebuild |
6 |
> > |
7 |
> > file : |
8 |
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.1.ebuild?rev=1.1&view=markup |
9 |
> > plain: |
10 |
> > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-power/nut/nut-2.2.1.ebuild?rev=1.1&content-type=text/plain |
11 |
> |
12 |
> > src_install() { |
13 |
> |
14 |
> ... |
15 |
> |
16 |
> > eval fperms 0640 ${NUT_PRIVATE_FILES} |
17 |
> > eval fowners root:nut ${NUT_PRIVATE_FILES} |
18 |
> > |
19 |
> > eval fperms 0644 ${NUT_PUBLIC_FILES} |
20 |
> > eval fowners root:root ${NUT_PUBLIC_FILES} |
21 |
> |
22 |
> ... |
23 |
> |
24 |
> > pkg_postinst() { |
25 |
> > # this is to ensure that everybody that installed old |
26 |
> > versions still has # correct permissions |
27 |
> > |
28 |
> > chown nut:nut "${ROOT}"/var/lib/nut 2>/dev/null |
29 |
> > chmod 0700 "${ROOT}"/var/lib/nut 2>/dev/null |
30 |
> > |
31 |
> > eval chown root:nut "${ROOT}"${NUT_PRIVATE_FILES} |
32 |
> > 2>/dev/null eval chmod 0640 "${ROOT}"${NUT_PRIVATE_FILES} |
33 |
> > 2>2>/dev/null |
34 |
> > |
35 |
> > eval chown root:root "${ROOT}"${NUT_PUBLIC_FILES} |
36 |
> > 2>/dev/null eval chmod 0644 "${ROOT}"${NUT_PUBLIC_FILES} 2>/dev/null |
37 |
> |
38 |
> Is there any reason why eval is used in either of these places? |
39 |
|
40 |
Or indeed why potentially useful debugging information is redirected |
41 |
to /dev/null... :) |
42 |
|
43 |
|
44 |
Kind regards, |
45 |
JeR |
46 |
-- |
47 |
gentoo-dev@l.g.o mailing list |