Notice»

Recent Post»

Recent Comment»

Recent Trackback»

Archive»

« 2024/5 »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

안드로이드 repo sync 문제 해법


  1. go to the folder where you made “repo init” some days ago
  2. open .repo/repo/subcmds/sync.py
  3. correct _Fetch function (program will try to sync even without network after this change:-)) – add “while True:” at line 6, “break” at line 9, remove “sys.exit(1)” at line 11.
  4. 1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    
      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

p.s. be aware – indented matter!

참고 : http://android.amberfog.com/?p=230

'Adroid' 카테고리의 다른 글

우분투 9.10 및 상위버전 vi문제 해결  (0) 2010.02.23
안드로이드 액티비티 - 첫번째 예제  (0) 2009.10.05
Android 개발자 사이트  (0) 2009.09.15
: