프로가 되자.

post search result

Android와 관련된 글 1개를 찾았습니다.

  1. 2009/11/20 Android 다운로드 시 “remote end hung up unexpectedly" 오류가 발생할 때
◀ recent : [1] : previous ▶

Android 다운로드 시 “remote end hung up unexpectedly" 오류가 발생할 때

Android platform을 repo를 이용하여 git에서 다운로드 할 때 자꾸 remote end hung up unexpectedly 라는 오류가 나면서 접속이 끊기는 경우가 있습니다.

이럴 땐 다음과 같은 방법으로 피해(?)를 최소화 할 수 있습니다:

1. repo init 하여 초기화 해 놓은 디렉토리로 이동합니다.
2. vi .repo/repo/subcmds/sync.py 를 이용하여 sync.py 파일을 편집합니다
3. _Fetch를 검색하여 다음과 같이 수정합니다.

def _Fetch(self, projects):
fetched = set()
pm = Progress('Fetching projects', len(projects))
for project in projects:
pm.update()
while True:
if project.Sync_NetworkHalf():
fetched.add(project.gitdir)
break
else:
print >>sys.stderr, 'error: Cannot fetch %s' % project.name
pm.end()
return fetched


기존의 소스와 달라진 점이 있다면

"while True:"와 "break"를 추가한 것과 "sys.exit(1)" 을 삭제한 것이 다릅니다. 즉 그냥 소스 코드 다운로드 될 때 까지 무한 루프 돌겠다 이거죠.

크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/11/20 10:21 2009/11/20 10:21

top

About this post

이 글에는 아직 트랙백이 없고, 아직 댓글이 없고, , , 태그가 달려있으며,
2009/11/20 10:21에 작성되었습니다.

◀ recent : [1] : previous ▶

blog information

프로가 되자.
BLOG main image
빗소리를 먹는 사람.
RSS 2.0Tattertools
최근 글 최근 댓글 최근 트랙백
태그 구름사이트 링크