summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-04-18 13:53:53 +0800
committerSaul Wold <sgw@linux.intel.com>2011-05-04 18:58:52 -0700
commit0137a98b28f0810e3361fc2ef86e88fca22def2d (patch)
tree6e2fcfce48d70cc3dd1a3fcc4909a965c9d984f0
parent326eb3f2cc5d1ce9e0fb75cc79f19c9748c63bd0 (diff)
downloadpoky-0137a98b28f0810e3361fc2ef86e88fca22def2d.tar.gz
git fetcher: make tag back to work, fix Yocto bug 972
In current git fetcher, tag does not work due to commit http://git.pokylinux.org/cgit/cgit.cgi/poky/commit/?id=5920e85c561624e657c126df58f5c378a8950bbc. Tag is not in sha256 form, so it will be treated invalid, and silently replaced by latest revision. To fix it, this patch treat tag name as branches name, thus it will be handled correctly later. Thanks Richard for reviewing and proposing the better approach. Fix [YOCTO #972] CC: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Yu Ke <ke.yu@intel.com>
-rw-r--r--bitbake/lib/bb/fetch2/git.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
index 1679f81511..b5bcfcf0a5 100644
--- a/bitbake/lib/bb/fetch2/git.py
+++ b/bitbake/lib/bb/fetch2/git.py
@@ -75,6 +75,7 @@ class Git(FetchMethod):
75 for name in ud.names: 75 for name in ud.names:
76 # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one 76 # Ensure anything that doesn't look like a sha256 checksum/revision is translated into one
77 if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]): 77 if not ud.revisions[name] or len(ud.revisions[name]) != 40 or (False in [c in "abcdef0123456789" for c in ud.revisions[name]]):
78 ud.branches[name] = ud.revisions[name]
78 ud.revisions[name] = self.latest_revision(ud.url, ud, d, name) 79 ud.revisions[name] = self.latest_revision(ud.url, ud, d, name)
79 80
80 ud.write_tarballs = (data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) or "0") != "0" 81 ud.write_tarballs = (data.getVar("BB_GENERATE_MIRROR_TARBALLS", d, True) or "0") != "0"