• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Check flat package type
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Check flat package type
      • From: Erik Berglund <email@hidden>
References: 
 >Check flat package type (From: Erik Berglund <email@hidden>)

  • Prev by Date: Re: Check flat package type
  • Next by Date: Re: Check flat package type
  • Previous by thread: Re: Check flat package type
  • Next by thread: Re: Check flat package type
  • Index(es):
    • Date
    • Thread