diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-23 15:34:57 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-29 14:11:39 +0100 |
commit | 9e1516d2bf495a26297df8a9db87ccf3eed9cd53 (patch) | |
tree | e2072e802b51492098214b08797526cfa3dbf0f4 /bitbake | |
parent | 552fd83d828b9e695ebaa1f64c9c8cf51c256645 (diff) | |
download | poky-9e1516d2bf495a26297df8a9db87ccf3eed9cd53.tar.gz |
bitbake: toaster: make clone directory name unique
Changed naming scheme for clone directory. Used full git url and branch to
make it unique. This should fix the issue with using the same git
repository, but different protocols, e.g. git://some.git.repo and
http://some.git.repo.
[YOCTO #8101]
(Bitbake rev: a9baf856a1ef7d84a47fa6615353f5b3fdb8a73b)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: brian avery <avery.brian@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py index ebb4377224..8c4e9c7e36 100644 --- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | |||
@@ -181,14 +181,9 @@ class LocalhostBEController(BuildEnvironmentController): | |||
181 | logger.debug("localhostbecontroller: Stopped bitbake server") | 181 | logger.debug("localhostbecontroller: Stopped bitbake server") |
182 | 182 | ||
183 | def getGitCloneDirectory(self, url, branch): | 183 | def getGitCloneDirectory(self, url, branch): |
184 | """ Utility that returns the last component of a git path as directory | 184 | """Construct unique clone directory name out of url and branch.""" |
185 | """ | ||
186 | components = re.split(r'[:\.\/]', url) | ||
187 | base = components[-2] if components[-1] == "git" else components[-1] | ||
188 | |||
189 | if branch != "HEAD": | 185 | if branch != "HEAD": |
190 | return "_%s_%s.toaster_cloned" % (base, branch) | 186 | return "_%s_%s.toaster_cloned" % (re.sub('[:/]', '_', url), branch) |
191 | |||
192 | 187 | ||
193 | # word of attention; this is a localhost-specific issue; only on the localhost we expect to have "HEAD" releases | 188 | # word of attention; this is a localhost-specific issue; only on the localhost we expect to have "HEAD" releases |
194 | # which _ALWAYS_ means the current poky checkout | 189 | # which _ALWAYS_ means the current poky checkout |