repo_sync change

207 views
Skip to first unread message

Gregory Neagle

unread,
Oct 22, 2012, 3:19:45 PM10/22/12
to repo...@googlegroups.com
I've pushed a change to the GitHub repo that is a bit of a workaround for the (still) broken 041-7694 OS X Update Combined 10.8.2 update.

For me at least, two dist files refuse to download:

Could not replicate https://swdist.apple.com/content/downloads/34/58/041-7694/n8pqcwj6lgbzl71l04jiyiqq2n6nh5qe3m/041-7694.Italian.dist: HTTP result 200: OK
Could not replicate https://swdist.apple.com/content/downloads/34/58/041-7694/n8pqcwj6lgbzl71l04jiyiqq2n6nh5qe3m/041-7694.hu.dist: HTTP result 200: OK

(we get an HTTP 200 OK result, but the files are zero-length).

The pushed change continues on even if one or more .dist file fails to replicate. If the failed .dist files are not your preferred language, things should be OK. If the failed-to-replicate .dist files are your preferred language, you may get some oddities in the display of details. reposado will fall back to English if it exists, but may get very unhappy if English.dist and en.dist do not exist.

-Greg

Mike Solin

unread,
Oct 23, 2012, 12:29:56 AM10/23/12
to repo...@googlegroups.com
Sorry Greg, I haven't been following the project too closely for a while. Is this broken for OS X Server's Software Update service, too?

I'm curious if Apple's software does things differently enough that this might be an issue for them.

Mike

--

Mac Systems Administrator
Penn State University, ITS/TLT
Classroom and Lab Computing

Greg Neagle

unread,
Oct 23, 2012, 12:32:41 AM10/23/12
to repo...@googlegroups.com
I don't know; I don't run an Apple Software Update service any longer. I haven't seen people complaining about Apple's SUS service not being able to replicate that particular update, though, so perhaps it isn't a problem there.

-Greg

Tim Schutt

unread,
Oct 23, 2012, 4:21:27 PM10/23/12
to repo...@googlegroups.com
Hey Greg,

I've tried the new code, and seem to be getting errors about the missing English file no matter what I do. I've even tried setting up a brand new repo with the same effect. Errors snipped below.

Traceback (most recent call last):
  File "./repo_sync", line 722, in <module>
    main()
  File "./repo_sync", line 718, in main
    download_packages=download_packages)
  File "./repo_sync", line 644, in sync
    dist = parseSUdist(preferred_dist)
  File "./repo_sync", line 107, in parseSUdist
    dom = minidom.parse(filename)
  File "/usr/lib/python2.6/xml/dom/minidom.py", line 1918, in parse
    return expatbuilder.parse(file)
  File "/usr/lib/python2.6/xml/dom/expatbuilder.py", line 922, in parse
    fp = open(file, 'rb')
IOError: [Errno 2] No such file or directory: 'English'

Gregory Neagle

unread,
Oct 23, 2012, 4:46:20 PM10/23/12
to repo...@googlegroups.com
If your preferred language _and_ English.dist are missing (or if your preferred language _is_ English), reposado really has nothing useful to use with the product download. Still, it should not be throwing an unhandled exception.

I just pushed a change to GitHub that will better handle your specific error condition, though won't really address the underlying issue with missing/empty .dist files.

-Greg

Tim Schutt

unread,
Oct 23, 2012, 7:49:37 PM10/23/12
to repo...@googlegroups.com
Ok - got it. Wasn't fully understanding the localization setting/dist file differences - I was wondering why I wasn't seeing an "en.dist" file in the source directory at Apple. 

Wading in to this one step at a time and learning more each step. Thanks for the patience and explanations.
Reply all
Reply to author
Forward
0 new messages