Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

macosx_get_minor_version fails on OSX versions with format X.X.0 #32

Closed
evanbrumley opened this Issue · 2 comments

2 participants

@evanbrumley

Hi guys,

Was just playing around with psmoveapi this afternoon and came across a very minor hiccup - for unpatched minor OSX versions (i.e. 10.8.0), the sw_vers command actually returns "10.8", not "10.8.0". This breaks macosx_get_minor_version, which uses a "%d.%d.%d" sscanf.

Thanks for all the hard work, I'm having a lot of fun with this :-)

Cheers,

Evan

@thp thp closed this issue from a commit
@thp OS X: Fix parsing of 10.x.0 version numbers (fixes #32)
For OS X versions with a patch version of 0, the sw_vers command does
not output the patch version (i.e. "10.8" instead of "10.8.0"), so we
fix this by accepting also two parsed numbers instead of only three.
7fa8150
@thp thp closed this in 7fa8150
@thp
Owner
thp commented

Thanks. Can you please try the fix I just committed to see if this fixes your problem (don't have a 10.8 machine here to test this, but it should work). Also, if you are creating something cool with it, please let me know, so I can link to it from the PS Move API website.

@evanbrumley

Thanks for that. I'm away from my machine for the next day or two, but will test when I get back. I'm mostly playing around with the python bindings at the moment - thinking of coming up with a little framework for game prototyping. Will let you know if anything evolves :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.