bitbake: cooker: return a copy checkPackages
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Sep 2013 07:38:44 +0000 (07:38 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 18 Sep 2013 07:41:55 +0000 (08:41 +0100)
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>
bitbake/lib/bb/cooker.py

index a0e282b..1d5e5f6 100644 (file)
@@ -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