Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: antarus@g.o, phajdan.jr@g.o
Subject: Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup
Date: Wed, 19 Jan 2011 17:19:23
Message-Id: 20110119181824.507384cc@pomiocik.lan
In Reply to: Re: [gentoo-dev] RFC: check for enewuser, enewgroup outside of pkg_setup by Alec Warner
1 On Wed, 19 Jan 2011 16:38:10 +0000
2 Alec Warner <antarus@g.o> wrote:
3
4 > On Wed, Jan 19, 2011 at 3:47 PM, Michał Górny <mgorny@g.o>
5 > wrote:
6 > > On Wed, 19 Jan 2011 16:25:03 +0100
7 > > "Paweł Hajdan, Jr." <phajdan.jr@g.o> wrote:
8 > >
9 > >> "If enewuser or enewgroup is called from outside of pkg_setup,
10 > >> fail"
11 > >
12 > > It is useful sometimes to call it in pkg_postinst(), if the
13 > > user/group is needed at runtime and not during install-time.
14 >
15 > What difference is there if you run it during setup vs postinst?
16
17 If the build fails or user aborts the merge, his/her system
18 is not junked with an unnecessary account/group.
19
20 --
21 Best regards,
22 Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies