Re: chown and @install_files
Bram Moolenaar <[email protected]> Fri, 16 Jan 2004 19:56:47 +0100
| Newsgroups | gmane.comp.tools.aap.devel |
|---|---|
| Message-ID | <[email protected]> |
Scott Henry Harrison wrote:
> >> Does @install_files handle anything like chown ownership?
> >> Otherwise, what I am doing is stuff like:
> >> @os.chown("/tmp/filename",pwd.getpwnam("sharrison")[2],pwd.getpwnam("sharris
> >> on")[3])
> > It could work like this:
> >
> > INSTALL_DATA += afile {mode = 0744} {user = scott} {group = hackers}
>
> How about
>
> INSTALL_DATA += afile {mode = 0744} {own = www:www}
>
> and
>
> INSTALL_DATA += afile {mode = 0744} {own = www}
>
> when the default group is to be used
>
> and
>
> INSTALL_DATA += afile {mode = 0744} {own = :subversion}
>
> when the default user is to be used?
I like to keep things simple. I don't see a good reason for combining
user and group names and it does make the value more complex.
I'll make a note in the todo list for adding the "user" and "group"
attributes. Don't expect it soon though...
--
"To whoever finds this note -
I have been imprisoned by my father who wishes me to marry
against my will. Please please please please come and rescue me.
I am in the tall tower of Swamp Castle."
SIR LAUNCELOT's eyes light up with holy inspiration.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ Project leader for A-A-P -- http://www.A-A-P.org ///
\\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn