Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Help with metapackage please

Help with metapackage please
Thread Tools
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
Apr 27, 2006, 06:20 PM
 
Hi. I've got two separate packages which I'd like to bundle together into a metapackage but I want only one of them to be installed depending on the target machine's OS version.

I've set up each package's requirements such that the 10.3 package will only install if the computer is running 10.3.x (actually >=10.3 && <10.4) and, similarly, the 10.4 package will only install if OS >=10.4.

Both of those work correctly when run on their respective OSs. The problem arises when I throw them both together into a metapackage; no matter which machine I try to install on, the mpkg fails.

If I try on 10.3 the metapackage tells me I need 10.4 and vice versa! Can anyone help please? I've got a lot of angry users looking for this update and my offering two discrete packages is not an option.

Thanks
ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
Mac Elite
Join Date: Oct 2000
Location: Edinburgh, Scotland
Status: Offline
Reply With Quote
May 2, 2006, 03:43 AM
 
I finally got this sorted. By examining the iLife '05 install DVD (after noticing that it was refusing to install iTunes but the rest of the package was happy to continue), I spotted the following key in the iTunes4.pkg/Contents/Info.plist

IFPkgFlagIsRequired boolean NO

My own individual packages had been created with that flag set to YES. Switching it to NO had the magical effect of making it work correctly!
ClamXav - the free virus scanner for Mac OS X | Geobunny learns to fly
     
Mac Elite
Join Date: Aug 2000
Location: Minneapolis, MN
Status: Offline
Reply With Quote
Jan 31, 2007, 12:35 AM
 
Thanks for the info and finding the solution. I'm working on using the package manager and don't do a lot of OSX programming. You may have helped me find a solution to one of my issues with the Package Manager!

Thanks!
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:46 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2