Re: Check flat package type
Re: Check flat package type
- Subject: Re: Check flat package type
- From: Erik Berglund <email@hidden>
- Date: Thu, 19 Nov 2015 14:09:01 +0100
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 <email@hidden> wrote:
>
> 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
_______________________________________________
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