]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
package_manager.py: Fix race condition in OpkgIndexer.write_index()
authorMariano Lopez <mariano.lopez@linux.intel.com>
Fri, 11 Mar 2016 07:29:17 +0000 (07:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 12 Mar 2016 22:11:47 +0000 (22:11 +0000)
commit36bf66654a557c570011db0b06f2084ee2ccf9cc
treea51485172e169325ff355245663819e47c721f50
parent35be67951305950ba797dc2efddbc7d88fc0556a
package_manager.py: Fix race condition in OpkgIndexer.write_index()

When writing the index using ipk packages there could be a race condition
when populate the index. This happens because the architectures
are repeated (specially all) and the commands generated to write the index
run in parallel.

This change avoid the duplication of commands using a set instead of a list.

[YOCTO #8924]

(From OE-Core rev: 74adb14b0002e20099cc2c34e01862e8ddb8e013)

Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py