Open GoogleCodeExporter opened 8 years ago
Here is another way to reproduce this issue.
# go to the root of your aosp tree
$ rm Makefile
$ repo sync build
Observe that "Makefile" is not recreated, despite the following entry in the
manifest (android-4.4.2_r1):
<project path="build" name="platform/build" groups="pdk" >
<copyfile src="core/root.mk" dest="Makefile" />
</project>
Original comment by james.m...@graphitesoftware.com
on 8 Oct 2014 at 8:02
I just discovered a work-around. Use the "--detach" option ("-d" for short):
# go to the root of your aosp tree
$ rm Makefile
$ repo sync --detach build
Observe that "Makefile" is recreated. Yay! :-)
When you don't use "--detach", I think repo tries to respect your local
changes, so perhaps it is functioning as designed when it does not recreate
"Makefile" (i.e. perhaps this is not a bug).
When I repo sync in my own tree, I tend to use "--detach" most of the time
since I am a little wary about the auto-rebase repo does otherwise.
Original comment by james.m...@graphitesoftware.com
on 8 Oct 2014 at 8:24
I created a small patch for fixing this "bug". I'm not quite sure whether it's
a bug or a feature, but I definitely prefer the behaviour to re-create the
link/copy file by default, without the -d
Original comment by fabien.c...@gmail.com
on 13 Nov 2014 at 8:58
Attachments:
Original issue reported on code.google.com by
trond.no...@gmail.com
on 27 Jun 2014 at 8:05