]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
taskdata.py: improve handling of depends/rdepends
authorPatrick Ohly <patrick.ohly@intel.com>
Mon, 14 Nov 2016 09:39:14 +0000 (10:39 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 23 Nov 2016 10:59:49 +0000 (10:59 +0000)
commit063d255fdcb3f79b2d1b0badedc80384b295a3f5
treecfc8c11e3c6668e0e06f372b87fca1c6dab88913
parent3511d464f3a9d8b4334cda384b35016de69ce49e
taskdata.py: improve handling of depends/rdepends

Error handling only caught the cause where a dependency did not have
any colon, but ignored the case where more than one was given. Now
"pn:task:garbage" will raise an error instead of ignoring ":garbage".

The error message had a misplaced line break (?) with the full stop
on the next line. Indenting the explanation with a space might have
been intended and is kept.

split() was called three times instead of just once.

Instead of improving the two instances of the code (one for 'depends',
one for 'rdepends'), the common code is now in a helper function.

Signed-off-by: Patrick Ohly <patrick.ohly@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
lib/bb/taskdata.py