• 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: Problems with Metapackages in Panther.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Problems with Metapackages in Panther.
      • From: Dennet Menezes <email@hidden>
References: 
 >Problems with Metapackages in Panther. (From: Dennet Menezes <email@hidden>)

  • Prev by Date: Test
  • Next by Date: Re: multiple license and readme files
  • Previous by thread: Re: Problems with Metapackages in Panther.
  • Next by thread: Re: Problems with Metapackages in Panther.
  • Index(es):
    • Date
    • Thread