Skip to content

Commit

Permalink
Attempt to deal with Apple randomly returning compressed content even…
Browse files Browse the repository at this point in the history
… when not requested/allowed
  • Loading branch information
gregneagle committed Sep 24, 2020
1 parent c17de23 commit e216c9c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions code/repo_sync
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ def curl(url, destinationpath, onlyifnewer=False, etag=None, resume=False):
# curl so we avoid the problem of URLs showing up in a process listing
try:
fileobj = open(curldirectivepath, mode='w')
print >> fileobj, 'compress' # accept and handle compressed files
print >> fileobj, 'silent' # no progress meter
print >> fileobj, 'show-error' # print error msg to stderr
print >> fileobj, 'no-buffer' # don't buffer output
Expand Down

0 comments on commit e216c9c

Please sign in to comment.