diff options
Diffstat (limited to 'bitbake/lib/bb/cookerdata.py')
| -rw-r--r-- | bitbake/lib/bb/cookerdata.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/bb/cookerdata.py b/bitbake/lib/bb/cookerdata.py index 472423fdc8..24bf09c56b 100644 --- a/bitbake/lib/bb/cookerdata.py +++ b/bitbake/lib/bb/cookerdata.py | |||
| @@ -387,10 +387,13 @@ class CookerDataBuilder(object): | |||
| 387 | invalid.append(entry) | 387 | invalid.append(entry) |
| 388 | continue | 388 | continue |
| 389 | l, f = parts | 389 | l, f = parts |
| 390 | if l in collections: | 390 | invert = l[0] == "!" |
| 391 | if invert: | ||
| 392 | l = l[1:] | ||
| 393 | if (l in collections and not invert) or (l not in collections and invert): | ||
| 391 | data.appendVar("BBFILES", " " + f) | 394 | data.appendVar("BBFILES", " " + f) |
| 392 | if invalid: | 395 | if invalid: |
| 393 | bb.fatal("BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:\n %s" % "\n ".join(invalid)) | 396 | bb.fatal("BBFILES_DYNAMIC entries must be of the form {!}<collection name>:<filename pattern>, not:\n %s" % "\n ".join(invalid)) |
| 394 | 397 | ||
| 395 | layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split()) | 398 | layerseries = set((data.getVar("LAYERSERIES_CORENAMES") or "").split()) |
| 396 | collections_tmp = collections[:] | 399 | collections_tmp = collections[:] |
