generic-poky/meta/lib
Ross Burton ae5d643114 package_manager: don't race on a file when installing complementary packages
PackageManager.install_complementary() uses WORKDIR/installed_pkgs.txt as a
temporary file but if two tasks are executing for the same recipe which uses
this file (e.g. bitbake my-image my-image:do_populate_sdk) then it's possible
for the file to be overwritten or deleted.

Instead of using a static filename, use tempfile to generate a unique name and
ensure it is cleaned up when finished.

Also move the glob generation/expansion earlier in the function as if there are
no globs to install, we don't need to generate a package list.

(From OE-Core rev: f5a1013ffa9815f22e13989e2bcb83f966e7ce2c)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2017-04-19 10:18:43 +01:00
..
oe package_manager: don't race on a file when installing complementary packages 2017-04-19 10:18:43 +01:00
oeqa oeqa/core/runner: Append PID in the test result folder name 2017-04-13 10:54:10 +01:00
buildstats.py meta: remove True option to getVar calls 2016-12-16 10:23:23 +00:00
rootfspostcommands.py rootfspostcommands: remove shadow backup files instead of trying to sort 2017-02-19 06:16:58 -08:00