summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-19 15:01:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-11-19 15:45:49 +0000
commita44285fc4109236ab89f7aad0a1fc9220eec19b6 (patch)
treecdd7eff64d14e35a2d2b02ad158762c4ca17b4b7 /lib/bb/cooker.py
parenta098cebd5c33ebd704efd35d9e655262283cbe1f (diff)
downloadbitbake-contrib-a44285fc4109236ab89f7aad0a1fc9220eec19b6.tar.gz
parse/cache/cooker: Preserve order in the file inclusion list
The data returned by get_file_depends() may me used in contexts like checksums where order is important. The current usage of sets means that some of the checksums can change in circumstances they should not. This patch changes to use lists, thereby removing the problem. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 5f88f1ff5..6b58f91c6 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -696,8 +696,8 @@ class BBCooker:
# Generate a list of parsed configuration files by searching the files
# listed in the __depends and __base_depends variables with a .conf suffix.
conffiles = []
- dep_files = self.configuration.data.getVar('__depends') or set()
- dep_files.union(self.configuration.data.getVar('__base_depends') or set())
+ dep_files = self.configuration.data.getVar('__base_depends') or []
+ dep_files = dep_files + (self.configuration.data.getVar('__depends') or [])
for f in dep_files:
if f[0].endswith(".conf"):