Re: Check flat package type
Re: Check flat package type
- Subject: Re: Check flat package type
- From: Per Olofsson <email@hidden>
- Date: Thu, 19 Nov 2015 13:02:15 +0000
- Thread-topic: Check flat package type
19 nov. 2015 kl. 07:10 skrev Erik Berglund <email@hidden>:
>
> 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-L213
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 (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden