Skip to contentSkip to conversation

Error with git+ssh repositories in Toaster

DISCUSSION Ed Bartosh 1 participant 1 message Apr 13, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

Hi Stephan,

I wasn't able to reproduce the issue on master and toaster-next.

Can you give us some details regarding 'strange behaviour' of toaster and bitbake you're seeing?

Quoted 33 lines

Dear Maintainer

We are using toaster sucessfully (git://git.yoctoproject.org/poky.git:
b1f23d1254682866236bfaeb843c0d8aa332efc2)

I am facing a strange behaviour of toaster/bitbake when cloning git+ssh repositories.
The source of the problem seems to be the "+" in the cloned foldername.

e.g. _git+ssh___bytesatwork.ch_repository

I suggest replacing the "+" with a "_" in the regex of localhostbecontroller.py

With this fix, toaster works as suspected.

bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +0 -0
index b5cf559..2328edd 100644
@@ -183,7 +183,7 @@ class

LocalhostBEController(BuildEnvironmentController):
def getGitCloneDirectory(self, url, branch):
"""Construct unique clone directory name out of url and branch.""" if branch != "HEAD":

bitbake/lib/toaster/bldcontrol/localhostbecontroller.py +1 -1
-            return "_toaster_clones/_%s_%s" % (re.sub('[:/@%]', '_', url), branch)
+            return "_toaster_clones/_%s_%s" % (re.sub('[:/@+%]', '_', url), branch)
 
        # word of attention; this is a localhost-specific issue; only on the localhost we expect to have "HEAD" releases
        # which _ALWAYS_ means the current poky checkout
Quoted 3 lines

Best regards

Stephan Dünner

--
Regards,
Ed