Re: Problems with Metapackages in Panther.
Re: Problems with Metapackages in Panther.
- Subject: Re: Problems with Metapackages in Panther.
- From: Stéphane Sudre <email@hidden>
- Date: Sun, 21 Jan 2007 14:06:23 +0100
On jeudi, janvier 18, 2007, at 11:22 AM, Dennet Menezes wrote:
Hi,
I have a Metapackage that contains individual packages with their own
VolumeCheck scripts. These packages are assigned the attribute
"Selected" in
the Metapackage Info.plist. When I install this metapackage in Tiger
the
VolumeCheck scripts for all the packages are run and they get
automatically
enabled/disabled in the Customize panel in case the script for a
package
succeeds/fails. However this is not the case in Panther where in-spite
of
the VolumeCheck scripts failing (which is verified by installing the
packages standalone) the metapackage goes on to allow installation for
all
the packages.
Is there any way I can get the metapackage to validate my individual
packages disabling the ones whose VolumeCheck script fails in Panther
just
as it does in Tiger?
From what I can see on Mac OS X 10.3.9, with the following test case:
Metapackage --+-- Package 1
|
+-- Package 2
Package 1 VolumeCheck script:
#!/bin/sh
exit 0
Package 2 VolumeCheck script:
#!/bin/sh
exit 32
AFAIK, according to documentation at
http://developer.apple.com/documentation/DeveloperTools/Conceptual/
SoftwareDistribution/Legacy_Requirements/chapter_950_section_5.html:
32 (2^5) is the first possible error value to return.
If you run this metapackage, in the Customize pane, both Package 1 and
Package 2 will be enabled and selected.
If you change 32 to 33, in the Customize pane, Package 1 is enabled and
selected. Package 2 is disabled and unselected.
My $0.02
P.S: this might be seen as a resent in the future as I posted a reply
on Thursday but it hasn't appeared yet on the list.
_______________________________________________
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