Re: Requiring restart in component package using pkgbuild
Re: Requiring restart in component package using pkgbuild
- Subject: Re: Requiring restart in component package using pkgbuild
- From: Vikram Singh <email@hidden>
- Date: Tue, 01 May 2012 13:29:57 +0530
From what I understand, component packages are for installing a single component of that full application. So if you want to specify Restart Action on a component package, it is similar to specifying that action on the Distribution that installs that component package. Component packages can definitely be more modular when they could specify their own requirements but requirements like Restart Action can be redundant if allowed for a component package.
For example, if you have many component packages, you may end up including Restart Action on all of them when specifying only on the Distribution serves the same purpose.
I hope doing this in Distribution is the better way to go. Though you can wait for other answers as well :)
On Mon, Apr 30, 2012 at 9:44 PM, Edward Waxler
<email@hidden> wrote:
I'm updating some build scripts to use pkgbuild instead of PackageMaker, but I'm not seeing an option to require restarts on a component package. In PackageMaker, requiring a restart could be done using either of the following two methods:
- (Legacy compatibility mode) In the Info.plist, set IFPkgFlagRestartAction to RequiredRestart.
- In the PackageInfo file, set pkg-info>postinstall-action to restart.
I don't see any similar options for pkgbuild or its component package plist. I understand that, when we build our distribution using productbuild, we can choose to require a restart on a per-package basis using the distribution file's pkg-ref>onConclusion key. But is this the only way to do this now (without using PackageMaker)? If so, I'm wondering why this requirement was moved out of the component packages and into the distribution that depends on them. In my mind, the component packages remained more modular when they could specify their own requirements.
Thanks in advance,
Ed
_______________________________________________
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
_______________________________________________
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