From: "Stephan Dünner" <stephan.duenner@bytesatwork.ch>
To: toaster@yoctoproject.org
Subject: Error with git+ssh repositories in Toaster
Date: Thu, 7 Apr 2016 15:45:25 +0200 [thread overview]
Message-ID: <57066475.7030906@bytesatwork.ch> (raw)
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.
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index b5cf559..2328edd 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -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":
- 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
Best regards
Stephan Dünner
--
bytes at work
Technoparkstrasse 7
CH-8406 Winterthur
Switzerland
phone: +41 52 550 50 60
web : http://www.bytesatwork.ch
next reply other threads:[~2016-04-07 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-07 13:45 Stephan Dünner [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-13 11:53 Error with git+ssh repositories in Toaster Ed Bartosh
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57066475.7030906@bytesatwork.ch \
--to=stephan.duenner@bytesatwork.ch \
--cc=toaster@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.