Re: Check flat package type
Perfect, Thanks Per and Stephane. I need to do some checking before I allow a package to be added to a System Image Utility created NBI, and it that only support component packages as a product archive to work.
On 19 nov. 2015, at 14:02, Per Olofsson <per.olofsson@gu.se> wrote:
19 nov. 2015 kl. 07:10 skrev Erik Berglund <e.berglund@MACSUPPORT.SE>:
Hi.
I'm searching for a way to determine the type of a given flat package.
I need to figure out if the package is a "component package" or a "product archive".
I've looked at the different pkg-tools I know of to find a flag or information flag to get this info but haven't found one yet. So, I'm asking here if anybody knows a reliable way to determine this.
In AutoDMG I extract Distribution and PackageInfo from the package using xar:
https://github.com/MagerValp/AutoDMG/blob/master/AutoDMG/IEDUtil.py#L185-L21...
If you find a Distribution file it's a product archive, it you find a PackageInfo file it's a component package.
-- Per Olofsson, IT-service, University of Gothenburg
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/e.berglund%40macsuppor...
This email sent to e.berglund@macsupport.se
_______________________________________________ Do not post admin requests to the list. They will be ignored. Installer-dev mailing list (Installer-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/installer-dev/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Erik Berglund