AOSPローカルミラーから、syncしてみるてすと

kinneko@BuildSV:~$ mkdir mydroid
kinneko@BuildSV:~$ cd mydroid/
kinneko@BuildSV:~/mydroid$ time ../repo init -u /home/kinneko/AOSP/platform/manifest.git -b gingerbread
(略)
repo initialized in /home/kinneko/mydroid

real	0m17.076s
user	0m0.400s
sys	0m0.110s

kinneko@BuildSV:~/mydroid$ time ../repo sync 
(略)
error: pack-objects died of signal 11   
error: git upload-pack: git-pack-objects died with error.
fatal: git upload-pack: aborting due to possible repository corruption on the remote side.
remote: aborting due to possible repository corruption on the remote side.
fatal: early EOF
fatal: index-pack failed
(略)
Fetching projects:  99% (169/170)  error: Cannot fetch platform/external/webkit

error: Exited sync due to fetch errors

real	1m40.411s
user	2m21.710s
sys	0m22.800s

一番重いWebkitが失敗じゃないか... orz
ミラーで問題がある様子。
しかし、syncするだけでは問題ない。

kinneko@BuildSV:~/AOSP$ rm -rf platform/external/webkit.git/*
kinneko@BuildSV:~/AOSP$ ../repo sync
Fetching projects:  52% (122/233)
fatal: Not a git repository: '/home/kinneko/AOSP/platform/external/webkit.git'
Fetching projects:  99% (231/233)  
fatal: Not a git repository: '/home/kinneko/AOSP/platform/external/webkit.git'
error: Cannot fetch platform/external/webkit

error: Exited sync due to fetch errors

ダメですな。
壊しちゃったか。


再度initしてみる。

kinneko@BuildSV:~/AOSP$ ../repo init --mirror -u https://android.googlesource.com/mirror/manifest
fatal: --mirror not supported on existing client

あらら。さっきはできたのに、どういうことだ???

kinneko@BuildSV:~/AOSP$ ../repo --version
repo version v1.7.7.5
       (from https://code.google.com/p/git-repo/)
git version 1.7.4.1
Python 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53) 
[GCC 4.5.2]

ここではまると泥沼の予感。


んー。
入れ物残したのはダメだったかな。
これでは?

kinneko@BuildSV:~/AOSP$ rm -rf platform/external/webkit.git
kinneko@BuildSV:~/AOSP$ ../repo sync
Fetching projects:  67% (157/233)
Downloading platform/external/webkit:   8% (5MB/56MB)  
(略)
Fetching projects: 100% (233/233), done.  

ああ、できたできた。


再度。

kinneko@BuildSV:~/AOSP$ cd ../mydroid/
kinneko@BuildSV:~/mydroid$ ../repo init -u /home/kinneko/AOSP/platform/manifest.git -b gingerbread
kinneko@BuildSV:~/mydroid$ time ../repo sync
(略)
Fetching projects: 100% (170/170), done.  
Checking out files: 100% (12174/12174), done.ut files:   0% (13/12174)   
Checking out files: 100% (10462/10462), done.ut files:   0% (76/10462)   
Syncing work tree: 100% (170/170), done.  


real	2m12.760s
user	2m50.090s
sys	0m26.840s
kinneko@BuildSV:~/mydroid$ ls
Makefile  build   development  frameworks  ndk       sdk
bionic    cts     device       hardware    packages  system
bootable  dalvik  external     libcore     prebuilt

すげー、jなしでこのスピード!