Advertisement
Guest User

Repo Sync Fix

a guest
Sep 10th, 2011
2,028
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.27 KB | None | 0 0
  1. [IGNORE]
  2. Hi,
  3.  
  4. I think you want to get source from CyanogenMod via repo but it got
  5. problem. Now korg (android.git.kernel.org) is in problem. So if the
  6. manifest from CyanogenMod includes any git projects hosted in korg,
  7. you can find connection error even you run 'repo init' once again.
  8.  
  9. I think http://goo.gl/YiFM6 is default.xml (manifest.xml) of
  10. CyanogenMod. You can find two type of project item like following.
  11.  
  12. ...line 17
  13. <project path="bionic" name="CyanogenMod/android_bionic"
  14. remote="github" />
  15. <project path="bootable/bootloader/legacy" name="platform/bootable/
  16. bootloader/legacy" />
  17. ...
  18.  
  19. project CyanogenMod/android_bionic is hosted by github(remote="github"
  20. and project platform/bootable/bootloader/legacy is hosted by default
  21. remote. (no remote in the line means using default remote)
  22.  
  23. You can find remote list in the same xml file.
  24.  
  25. ...line 2
  26. <manifest>
  27. <remote name="korg"
  28. fetch="git://android.git.kernel.org/"
  29. review="review.source.android.com" />
  30.  
  31. <remote name="github"
  32. fetch="git://github.com/"
  33. review="review.cyanogenmod.com" />
  34.  
  35. <default revision="gingerbread"
  36. remote="korg" />
  37. ...
  38.  
  39. Default remote is korg that is in problem now. Another remote is
  40. github that is in no problem.
  41.  
  42. So you can run following steps to get CyanogenMod (or anything like
  43. that).
  44. [/IGNORE]
  45.  
  46.  
  47.  
  48.  
  49.  
  50. === Step 1 ===
  51. Run repo init with alternative remote git.omapzoom.org (TI remote)
  52.  
  53. $ repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
  54. --repo-url=git://git.omapzoom.org/tools/repo.git
  55.  
  56.  
  57. === Step 2 ===
  58. Change default remote from korg to omapzoom(TI). You can add remote
  59. and then change default remote.
  60.  
  61. $ vi .repo/manifest.xml
  62.  
  63. <<<<<<Before
  64. <manifest>
  65. <remote name="korg"
  66. fetch="git://android.git.kernel.org/"
  67. review="review.source.android.com" />
  68.  
  69. <remote name="github"
  70. fetch="git://github.com/"
  71. review="review.cyanogenmod.com" />
  72.  
  73. <default revision="gingerbread"
  74. remote="korg" />
  75. ======
  76. <manifest>
  77. <remote name="korg"
  78. fetch="git://android.git.kernel.org/"
  79. review="review.source.android.com" />
  80.  
  81. <remote name="github"
  82. fetch="git://github.com/"
  83. review="review.cyanogenmod.com" />
  84.  
  85. <remote name="omapzoom"
  86. fetch="git://git.omapzoom.org/" />
  87.  
  88. <default revision="gingerbread"
  89. remote="omapzoom" />
  90. >>>>>>After
  91.  
  92. === step 3 ===
  93.  
  94. $ repo sync
  95.  
  96.  
  97. === misc ===
  98. After korg has fixed, you can do following (not now)
  99.  
  100. $ cd .repo/manifests
  101. $ git reset --hard
  102. $ repo sync
  103.  
  104. It will remove your modification of manifest.xml
  105.  
  106.  
  107. Originally I consider CAF(git://codeaurora.org by Qualcomm) for
  108. default remote but branch name between korg and CAF is little bit
  109. different (e.g. korg : gingerbread, CAF : korg/gingerbread). So I use
  110. omapzoom remote. Anything is OK. But using omapzoom is simple in this
  111. case.
  112.  
  113. Anyhow, important thing is you can use CAF or omapzoom instead of korg
  114. sometimes. Because CAF and omapzoom remote is hosting mirror branch of
  115. korg. So you can change .repo/manifest.xml to use different remote and
  116. revision(e.g. branch, tag, commitID)
  117.  
  118. Try it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement