]> code.ossystems Code Review - openembedded-core.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:20 +0000 (22:11 +0000)
commit74adb14b0002e20099cc2c34e01862e8ddb8e013
tree81188f69a5b87d62c01fc6edffab33f5d09741df
parent01a242645cc12daed3f4da30d8c49813642d75e6
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]

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