Syncing a repo for the first time with a local mirror

1,526 views
Skip to first unread message

Verachten Bruno

unread,
Feb 10, 2014, 9:45:34 AM2/10/14
to repo-d...@googlegroups.com
Hi,

I had problems with the android-x86 repository containing the froyo source code.
After reading a few articles on tips to simplify the repo task, I decided to start from the aosp source code, and then let repo find the differences between aosp and android-x86.
So I started with:
repo init -u https://android.googlesource.com/mirror/manifest –mirror
and then

repo sync -j 8.
So, I got a local mirror.
Then, I created a froyo directory and launched:
repo init -u /usr/local/aosp/mirror/platform/manifest.git -b android-2.2.3_r2

It didn't end very well:
error.GitError: platform/packages/apps/Contacts gc: fatal: Not a git repository: '/usr/local/aosp/froyo/.repo/projects/packages/apps/Contacts.git

What did I miss?

Thanks.

Bruno Verachten

Magnus Bäck

unread,
Feb 10, 2014, 10:53:45 AM2/10/14
to repo-d...@googlegroups.com
On Monday, February 10, 2014 at 09:45 EST,
Please post the full output of this command:

repo --trace sync platform/packages/apps/Contacts

I can't reproduce your problem. AFAICT, the following commands should
be equivalent to what you did (except that I'm only syncing a subset
of the files to save time):

mkdir -p /tmp/repotest/{mirror,clone}
cd /tmp/repotest/mirror
repo init -u https://android.googlesource.com/mirror/manifest --mirror 2> /dev/null ; echo $?
repo sync platform/manifest platform/packages/apps/Contacts 2> /dev/null ; echo $?
cd /tmp/repotest/clone
repo init -u /tmp/repotest/mirror/platform/manifest -b android-2.2.3_r2 2> /dev/null ; echo $?
repo sync platform/packages/apps/Contacts 2> /dev/null ; echo $?

This results in the following output on my machine with Repo 1.12.13 and
1.21 of the launcher script:

repo mirror has been initialized in /tmp/repotest/mirror
0
Fetching project platform/packages/apps/Contacts
Fetching project platform/manifest
0

Your identity is: Magnus Bäck <ba...@google.com>
If you want to change this, please re-run 'repo init' with --config-name

repo has been initialized in /tmp/repotest/clone
0
Fetching project platform/packages/apps/Contacts
0

So, this works and
/tmp/repotest/clone/.repo/projects/packages/apps/Contacts.git exists.
Does that directory exist for you at all? If it does, what does it
contain? Was the sync of the mirror really successful?

--
Magnus Bäck
ba...@google.com

Verachten Bruno

unread,
Feb 12, 2014, 4:36:02 AM2/12/14
to repo-d...@googlegroups.com
Hi,

thanks for your answer.
I started from scratch once again, but with an ext3 filesystem this time, as repo sometimes complains about the ntfs filesystem I was using (because of symlinks).
Anyway, the error has gone.
I'm now trying to override the downloaded files with the android-x86 repository.
Wish me luck.

Kind regards,
Bruno Verachten
Reply all
Reply to author
Forward
0 new messages