diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-21 22:31:57 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-21 22:33:47 +0100 |
commit | ca4f5e6d01b5c8cf315f59bc86194d63c0d3d042 (patch) | |
tree | 71b7b18e80f54709979a51910b06447bb4c29dc7 /lib/bb/providers.py | |
parent | c3873346c6fa1021a1d63bddd9b898a77c618432 (diff) | |
download | bitbake-ca4f5e6d01b5c8cf315f59bc86194d63c0d3d042.tar.gz |
cooker/providers: Only add target to world build if task exists
A "bitbake world -c unpack" currently breaks as not all tasks have an
unpack task. This change allows addition of world targets only if the
specified task exists which makes certain commands possible when otherwise
you just get errors which can't easily be avoided.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/providers.py')
-rw-r--r-- | lib/bb/providers.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/providers.py b/lib/bb/providers.py index 80701b281..db02a0b0d 100644 --- a/lib/bb/providers.py +++ b/lib/bb/providers.py @@ -402,7 +402,7 @@ def getRuntimeProviders(dataCache, rdepend): return rproviders -def buildWorldTargetList(dataCache): +def buildWorldTargetList(dataCache, task=None): """ Build package list for "bitbake world" """ @@ -413,6 +413,9 @@ def buildWorldTargetList(dataCache): for f in dataCache.possible_world: terminal = True pn = dataCache.pkg_fn[f] + if task and task not in dataCache.task_deps[f]['tasks']: + logger.debug(2, "World build skipping %s as task %s doesn't exist", f, task) + terminal = False for p in dataCache.pn_provides[pn]: if p.startswith('virtual/'): |