• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: mod times on directories installed by pkg?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: mod times on directories installed by pkg?
      • From: Julian Devlin <email@hidden>
References: 
 >mod times on directories installed by pkg? (From: Julian Devlin <email@hidden>)

  • Prev by Date: mod times on directories installed by pkg?
  • Next by Date: Re: mod times on directories installed by pkg?
  • Previous by thread: mod times on directories installed by pkg?
  • Next by thread: Re: mod times on directories installed by pkg?
  • Index(es):
    • Date
    • Thread