From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: toaster@yoctoproject.org
Subject: Re: Error with git+ssh repositories in Toaster
Date: Wed, 13 Apr 2016 14:53:50 +0300 [thread overview]
Message-ID: <20160413115350.GA26809@linux.intel.com> (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?
> 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
next reply other threads:[~2016-04-13 14:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-13 11:53 Ed Bartosh [this message]
-- strict thread matches above, loose matches on Subject: below --
2016-04-07 13:45 Error with git+ssh repositories in Toaster Stephan Dünner
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=20160413115350.GA26809@linux.intel.com \
--to=ed.bartosh@linux.intel.com \
--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.