Skip to contentSkip to conversation

image: Don't create tasks with '.' in the name

PATCH New Richard Purdie 1 participant 1 message Jan 26, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 image: Don't create tasks with '.' in the name

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)

meta/classes/image.bbclass +2 -2
index 3870516..797f342 100644
@@ -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')