Re: mod times on directories installed by pkg?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com On Jan 31, 2007, at 10:45 AM, Julian Devlin wrote: Hi, John _______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.a... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
John Daniel