[oe-commits] [bitbake] 03/03: bitbake: cookerdata: Check duplicated BBFILE_COLLECTIONS

git at git.openembedded.org git at git.openembedded.org
Tue Feb 5 14:06:35 UTC 2019

This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit 0e15cdd8eade567b5a8d9798a30853976fe84cb8
Author: Robert Yang <liezhi.yang at windriver.com>
AuthorDate: Fri Jan 25 15:09:29 2019 +0800

    bitbake: cookerdata: Check duplicated BBFILE_COLLECTIONS
    It shouldn't work when there are duplicated BBFILE_COLLECTIONS.
    Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
 lib/bb/cookerdata.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/bb/cookerdata.py b/lib/bb/cookerdata.py
index 5df66e6..09412e2 100644
--- a/lib/bb/cookerdata.py
+++ b/lib/bb/cookerdata.py
@@ -391,7 +391,11 @@ class CookerDataBuilder(object):
                 bb.fatal("BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:\n    %s" % "\n    ".join(invalid))
             layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split())
+            collections_tmp = collections[:]
             for c in collections:
+                collections_tmp.remove(c)
+                if c in collections_tmp:
+                    bb.fatal("Found duplicated BBFILE_COLLECTIONS '%s', check bblayers.conf or layer.conf to fix it." % c)
                 compat = set((data.getVar("LAYERSERIES_COMPAT_%s" % c) or "").split())
                 if compat and not (compat & layerseries):
                     bb.fatal("Layer %s is not compatible with the core layer which only supports these series: %s (layer is compatible with %s)"

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Openembedded-commits mailing list