Code Monkey home page Code Monkey logo

Comments (6)

craigrichardson avatar craigrichardson commented on July 19, 2024

Have tested this with every MacBookPro model the following models are all listed in 041-7018 but download 041-2011 instead.

MacBookPro7,1
MacBookPro5,1
MacBookPro5,2
MacBookPro5,3
MacBookPro5,4
MacBookPro5,5
MacBookPro4,1
MacBookPro3,1
MacBookPro2,1
MacBookPro2,2

Also it'd be cool to have an argument to brigadier to not download the ESD and just show which one it would have downloaded.

from brigadier.

craigrichardson avatar craigrichardson commented on July 19, 2024

Also if you run with model=MacBookAir5,1 and again with MacBookPro6,1 they both agree that 041-7018 is the most recent version for them. However they they both list a different set of compatible models with 041-7018.

Shouldn't the support list for 041-7018 be identical regardless of what model was used to find it?

cheers,
Craig

from brigadier.

timsutton avatar timsutton commented on July 19, 2024

None of those models you list are listed in the 041-7018 available here:

http://swcdn.apple.com/content/downloads/11/52/041-7018/4sl2ymp342kykiix7yg4udoyi1bn011lpq/041-7018.English.dist

    var models = ['MacBookAir4,1','MacBookAir4,2','MacBookAir5,1','MacBookAir5,2','MacBookPro6,1','MacBookPro6,2','MacBookPro8,1','MacBookPro8,2','MacBookPro8,3','MacBookPro9,1','MacBookPro9,2','MacBookPro10,1','MacBookPro10,2','MacPro4,1','MacPro5,1','Macmini5,1','Macmini5,2','Macmini5,3','Macmini6,1','Macmini6,2','iMac11,3','iMac12,1','iMac12,2','iMac13,1','iMac13,2',];

As you see in the output, it will tell you the model was parsed from more than one dist file if that was the case.

from brigadier.

craigrichardson avatar craigrichardson commented on July 19, 2024

Ahh right, yes I can see now that it is selecting the correct ESD. However what is printed to stdout I still think is saying that some ESDs support models that they do not. I was trying to parse Brigadier output to quickly build a list of the most current ESDs for every Mac model (rather than actually installing them).

Consider the output from the following
"brigadier --model=MacPro5,1"

It first lists that it found this model in 041-2011 and prints out the distribution support for 041-2011.

Then it says it also found it in 041-7018 and appears the print the concatenation of the models found in 041-2011 & 041-7018 as what I was reading to be the "supported model list" for 041-7018. This would lead me to incorrectly interpret that a MacBook2,1 was found in 041-7018. Of course as you say if you get the 041-7018.English.dist you'd see this isn't the case.

Is it intended for the model lists to be concatenated each time it finds the model in an ESD? or should these lists just be the models array from each .dist file?

screen shot 2014-01-09 at 12 24 18 pm

from brigadier.

timsutton avatar timsutton commented on July 19, 2024

The logging right now could be explained more usefully, which is one of the things I'd like to improve on in another release.

The model list is what it says: the models listed in that distribution file. So, first it finds 041-2011, and lists the supported models. It then finds 041-7018, and lists its supported models. It then goes and selects the most recent one, since there are two.

Some more investigation could be done to determine what the software update framework does to determine which ESD to actually use (it may be internally preferring the newer tags with "AutoUnattend" in the name). But picking the latest posted one seems to work fine for now.

from brigadier.

timsutton avatar timsutton commented on July 19, 2024

To your other point about the concatenating list, I think you're onto something - I'll look further.

from brigadier.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.