* [review-request][PATCH] toaster: fix naming for clone directory (ed/toaster/fix-directory-name)
@ 2015-10-07 14:21 Ed Bartosh
2015-10-07 14:33 ` Smith, Elliot
0 siblings, 1 reply; 2+ messages in thread
From: Ed Bartosh @ 2015-10-07 14:21 UTC (permalink / raw)
To: toaster
Toaster uses git url and branch to make a clone directory
name. Current code leaves '@' and '%' characters unchanged,
which can cause generation of wrong directory names.
Fixed this issue by replacing '@' and '%' with underscore.
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index a8d8398..3ee68ae 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
--
Ed
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [review-request][PATCH] toaster: fix naming for clone directory (ed/toaster/fix-directory-name)
2015-10-07 14:21 [review-request][PATCH] toaster: fix naming for clone directory (ed/toaster/fix-directory-name) Ed Bartosh
@ 2015-10-07 14:33 ` Smith, Elliot
0 siblings, 0 replies; 2+ messages in thread
From: Smith, Elliot @ 2015-10-07 14:33 UTC (permalink / raw)
To: Ed Bartosh; +Cc: toaster
[-- Attachment #1: Type: text/plain, Size: 1724 bytes --]
On 7 October 2015 at 15:21, Ed Bartosh <ed.bartosh@linux.intel.com> wrote:
> Toaster uses git url and branch to make a clone directory
> name. Current code leaves '@' and '%' characters unchanged,
> which can cause generation of wrong directory names.
>
Submitted upstream.
Elliot
>
> Fixed this issue by replacing '@' and '%' with underscore.
>
> Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
> ---
> bitbake/lib/toaster/bldcontrol/localhostbecontroller.py | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
> b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
> index a8d8398..3ee68ae 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
> --
> Ed
>
> --
> _______________________________________________
> toaster mailing list
> toaster@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/toaster
>
--
Elliot Smith
Software Engineer
Intel Open Source Technology Centre
[-- Attachment #2: Type: text/html, Size: 2758 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-07 14:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-07 14:21 [review-request][PATCH] toaster: fix naming for clone directory (ed/toaster/fix-directory-name) Ed Bartosh
2015-10-07 14:33 ` Smith, Elliot
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.