Re: mod times on directories installed by pkg?
site_archiver@lists.apple.com Delivered-To: installer-dev@lists.apple.com -Julian _______________________________________________ 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... 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 :( This email sent to site_archiver@lists.apple.com
participants (1)
-
Julian Devlin