Skip to content

Commit

Permalink
[tidev#1704 state:resolved] fix for iTunes 10 which breaks prereq. sw…
Browse files Browse the repository at this point in the history
…itched to reading the version directly from the version.plist in iTunes.app
  • Loading branch information
Jeff Haynie committed Sep 2, 2010
1 parent 8e3b1e0 commit be36b9d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions support/iphone/prereq.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,13 +70,15 @@ def check_iphone3():
sys.exit(1)

def check_itunes_version(props):
ver = run.run(['osascript',os.path.join(template_dir,'itunes_ver.scpt')],False,False).strip()
ver = run.run(['/usr/libexec/PlistBuddy','-c','Print :CFBundleVersion','/Applications/iTunes.app/Contents/version.plist'],True,False)
ver = ver.strip()
props['itunes_version']=ver
props['itunes']=False
props['itunes_message']=None
if ver:
major = int(ver[0])
minor = int(ver[2])
toks = ver.split('.')
major = toks[0]
minor = toks[1]
if (major == 8 and minor >= 2) or major > 8:
props['itunes']=True
return
Expand Down

0 comments on commit be36b9d

Please sign in to comment.