]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package_manager: Avoid race problems when calling list_pkgs()
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 15 Nov 2018 11:28:11 +0000 (11:28 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 16 Nov 2018 09:32:17 +0000 (09:32 +0000)
commitd05fa49e06034913e22c223803c98cb265e2ae58
tree6b3fb9d04cca6e8c892471df7c64d1277ad89459
parent8e6987735002560fca714f77ea8ece9d4b28f7fa
lib/oe/package_manager: Avoid race problems when calling list_pkgs()

list_pkgs() for rpm calls RpmPM() which would try and create a copy of the
package feed. This can be called for example from buildhistory whilst some
other task may be working on an SDK or image construction, causing the package
feed to disappear part way through an operation.

Avoid the need to copy the package index just to list the installed
packages, avoiding the race.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package_manager.py