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/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com
participants (1)
-
Per Olofsson