* [PATCH] package_manager: Ensure we don't process directories twice
@ 2014-03-26 11:40 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2014-03-26 11:40 UTC (permalink / raw)
To: openembedded-core
Processing directories twice is both pointless and introduces a race condition.
When building the list, ensure duplicates (like "all" and "noarch") are handled
correctly.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py
index 0cdf3b0..692528d 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")
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2014-03-26 11:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-26 11:40 [PATCH] package_manager: Ensure we don't process directories twice Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox