Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] image: Don't create tasks with '.' in the name
@ 2016-01-26 18:02 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2016-01-26 18:02 UTC (permalink / raw)
  To: openembedded-core; +Cc: Otavio Salvador

Similarly to "-", "." doesn't work well in task names but is used in
some real world image classes. Work around this with some replacements
for now to unbreak layers.

(Issues don't show themselves until runtime, e.g. with --dry-run)

Tested-By: Otavio Salvador <otavio.salvador@ossystems.com.br>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 3870516..797f342 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -395,9 +395,9 @@ python () {
 
         after = 'do_image'
         for dep in typedeps[t]:
-            after += ' do_image_%s' % dep.replace("-", "_")
+            after += ' do_image_%s' % dep.replace("-", "_").replace(".", "_")
 
-        t = t.replace("-", "_")
+        t = t.replace("-", "_").replace(".", "_")
 
         d.setVar('do_image_%s' % t, '\n'.join(cmds))
         d.setVarFlag('do_image_%s' % t, 'func', '1')




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-01-26 18:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-26 18:02 [PATCH] image: Don't create tasks with '.' in the name Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox