Re: mod times on directories installed by pkg?
Re: mod times on directories installed by pkg?
- Subject: Re: mod times on directories installed by pkg?
- From: Julian Devlin <email@hidden>
- Date: Wed, 31 Jan 2007 22:23:24 -0600
Julian,
This is a bug/feature of the tar utility and (apparently) the
closely related pax utility.
Yeah, I sort of figured it must be there, or with the code the uses
the bom to set permissions and mod times...
I think what happens is that it creates the directory with the
correct time, then puts a whole bunch of files in there, thus
changing the modification time to the install time.
It's curious that some of the folders have the mod time I want.
Since I couldn't find any pattern I'm guessing that it must simply
have to do with the order in which files or folders are dealt with...
I think you'll have to write a postinstall/postupgrade script that
goes through the install folder and changes all the folders to have
the correct mod time. Except for the actual un-pax'ing, I do just
about everything in the postinstall/postupgrade script.
My preliminary conclusion after today is that the mod time gets
changed AFTER the postflight gets run.
In which case I may just be stuck :(
-Julian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden