]> code.ossystems Code Review - openembedded-core.git/commitdiff
image: Don't create tasks with '.' in the name
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Jan 2016 18:02:21 +0000 (18:02 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 26 Jan 2016 18:04:19 +0000 (18:04 +0000)
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>
meta/classes/image.bbclass

index 387051654ee18defe7d94961c926435585fa8537..797f342521664520b7c7bbf740ff44e7902cdc15 100644 (file)
@@ -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')