Skip to contentSkip to conversation

build: Disable warning about dependent tasks for now

PATCH New Richard Purdie 1 participant 1 message May 1, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: Disable warning about dependent tasks for now

This breaks with rm_work so disable the warning until we find a better solution (and change the test accordingly too).

---
 lib/bb/build.py       | 4 ++--
 lib/bb/tests/parse.py | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
lib/bb/build.py +2 -2
index 8ad9f5de2a..a228b05ddd 100644
@@ -818,8 +818,8 @@ def add_tasks(tasklist, d):
         if 'deps' in flags:
             for dep in flags['deps']:
                 # Check and warn for "addtask task after foo" while foo does not exist
-                if not dep in tasklist:
-                    bb.warn('%s: dependent task %s for %s does not exist' % (d.getVar('PN'), dep, task))
+                #if not dep in tasklist:
+                #    bb.warn('%s: dependent task %s for %s does not exist' % (d.getVar('PN'), dep, task))
                 dep = d.expand(dep)
                 task_deps['parents'][task].append(dep)
 
lib/bb/tests/parse.py +1 -1
index aa7adc40f2..747fc35fc2 100644
@@ -203,5 +203,5 @@ deltask do_fetch do_patch
         self.assertTrue("addtask contained multiple 'after' keywords" in stdout)
         self.assertTrue('addtask ignored: " do_patch"' in stdout)
         self.assertTrue('deltask ignored: " do_patch"' in stdout)
-        self.assertTrue('dependent task do_foo for do_patch does not exist' in stdout)
+        #self.assertTrue('dependent task do_foo for do_patch does not exist' in stdout)
 
Signature · 1 line
2.20.1