Hello list, the attached patch makes sure that the branch name is included in the cache key for git as well.
Not distinguishing between branch names is a problem as soon as you have two different bb recipies that need different branches from the same git tree (linux-openmoko and linux-openmoko-devel for example). In that case the HEAD for the first recipe that has been looked up will be used for the second one as well which leads to build failures after the cache needs to be rebuilt. Regards, Daniel Willmann
Index: bitbake-1.8/lib/bb/fetch/git.py
===================================================================
--- bitbake-1.8/lib/bb/fetch/git.py (revision 1094)
+++ bitbake-1.8/lib/bb/fetch/git.py (working copy)
@@ -119,7 +119,7 @@
"""
Return a unique key for the url
"""
- return "git:" + ud.host + ud.path.replace('/', '.')
+ return "git:" + ud.host + ud.path.replace('/', '.') + '.' + ud.branch
def _latest_revision(self, url, ud, d):
"""
signature.asc
Description: PGP signature
_______________________________________________ Bitbake-dev mailing list [email protected] https://lists.berlios.de/mailman/listinfo/bitbake-dev
