From da097095c6f1bd1785ed770b45be45e458b97d8e Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 26 Mar 2014 11:40:12 +0000 Subject: package_manager: Ensure we don't process directories twice Processing directories twice is both pointless and introduces a race condition. When building the list, ensure duplicates (like "all" and "noarch") are handled correctly. (From OE-Core rev: 4c487543422ae471a01a573bab44e3f6a6d2497a) Signed-off-by: Richard Purdie --- meta/lib/oe/package_manager.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'meta/lib/oe') diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index 0cdf3b0857..692528db16 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py @@ -178,7 +178,9 @@ class DpkgIndexer(Indexer): arch_list = pkg_archs.split() sdk_pkg_archs = self.d.getVar('SDK_PACKAGE_ARCHS', True) if sdk_pkg_archs is not None: - arch_list += sdk_pkg_archs.split() + for a in sdk_pkg_archs.split(): + if a not in pkg_archs: + arch_list.append(a) apt_ftparchive = bb.utils.which(os.getenv('PATH'), "apt-ftparchive") gzip = bb.utils.which(os.getenv('PATH'), "gzip") -- cgit v1.2.3-54-g00ecf