diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-18 07:38:44 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-18 08:41:44 +0100 |
commit | 97db2a0792d605f27d434bc6a4acce52857deee1 (patch) | |
tree | 928feddd554662c8d56800eca2d7a440bfa0f5b1 | |
parent | 6983afab0ce8d82d102142636d5a570f7d86a844 (diff) | |
download | bitbake-97db2a0792d605f27d434bc6a4acce52857deee1.tar.gz |
cooker: return a copy checkPackages
The syntax used for checkPackages implies a copy is returned but it
did not do so. Make it so.
This is fixes universe builds where error messaages were being shown
but there should have only been warnings.
[YOCTO #5222]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cooker.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index a0e282b85..1d5e5f66c 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1192,6 +1192,9 @@ class BBCooker: def checkPackages(self, pkgs_to_build): + # Return a copy, don't modify the original + pkgs_to_build = pkgs_to_build[:] + if len(pkgs_to_build) == 0: raise NothingToBuild |