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: John Daniel <email@hidden>
- Date: Wed, 31 Jan 2007 14:23:50 -0600
On Jan 31, 2007, at 10:45 AM, Julian Devlin wrote:
Hi,
I'm seeing something strange with the mod times on directories
installed by a pkg (including .app directories).
I'm currently testing under 10.4.8 on an Intel.
Basically here's the idea:
Before making my pkg, I set the mod time of all files and
directories in the input folder to be the same.
After installing the pkg, the mod time of all FILES is what I set
it to.
However, for directories, some have the mod time I set, while
others have a mod time matching the time at which I installed.
lsbom -p MUGsfT only shows times for files, not directories,
suggesting that maybe mod time for directories are not stored?
Julian,
This is a bug/feature of the tar utility and (apparently) the closely
related pax utility.
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.
I wrote a program once that extracted tar archives and I made a point
not to exhibit that particular bug. My solution was a bit convoluted
though.
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.
John
_______________________________________________
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