* Error with git+ssh repositories in Toaster
@ 2016-04-07 13:45 Stephan Dünner
0 siblings, 0 replies; 2+ messages in thread
From: Stephan Dünner @ 2016-04-07 13:45 UTC (permalink / raw)
To: toaster
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
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: Error with git+ssh repositories in Toaster
@ 2016-04-13 11:53 Ed Bartosh
0 siblings, 0 replies; 2+ messages in thread
From: Ed Bartosh @ 2016-04-13 11:53 UTC (permalink / raw)
To: toaster
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?
> 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
--
Regards,
Ed
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-13 14:13 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-07 13:45 Error with git+ssh repositories in Toaster Stephan Dünner
-- strict thread matches above, loose matches on Subject: below --
2016-04-13 11:53 Ed Bartosh
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.