summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 07:38:44 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-18 08:41:55 +0100
commiteaf06bc2840cc39026033de0779858b1bf82f06f (patch)
treee18d296114de43ed87703341abb3a94842994c26 /bitbake/lib/bb/cooker.py
parent825cfeb2e6777a55077ecff32d5b2c0e3da13ae8 (diff)
downloadpoky-eaf06bc2840cc39026033de0779858b1bf82f06f.tar.gz
bitbake: 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] (Bitbake rev: 97db2a0792d605f27d434bc6a4acce52857deee1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index a0e282b854..1d5e5f66c2 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -1192,6 +1192,9 @@ class BBCooker:
1192 1192
1193 def checkPackages(self, pkgs_to_build): 1193 def checkPackages(self, pkgs_to_build):
1194 1194
1195 # Return a copy, don't modify the original
1196 pkgs_to_build = pkgs_to_build[:]
1197
1195 if len(pkgs_to_build) == 0: 1198 if len(pkgs_to_build) == 0:
1196 raise NothingToBuild 1199 raise NothingToBuild
1197 1200