summaryrefslogtreecommitdiffstats
path: root/meta/classes/package.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/package.bbclass')
-rw-r--r--meta/classes/package.bbclass15
1 files changed, 8 insertions, 7 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index a116948952..4ce9de2f57 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -1138,21 +1138,22 @@ python populate_packages () {
1138 1138
1139 # Sanity check PACKAGES for duplicates 1139 # Sanity check PACKAGES for duplicates
1140 # Sanity should be moved to sanity.bbclass once we have the infrastructure 1140 # Sanity should be moved to sanity.bbclass once we have the infrastructure
1141 package_list = [] 1141 package_dict = {}
1142 1142
1143 for pkg in packages.split(): 1143 for i, pkg in enumerate(packages.split()):
1144 if pkg in package_list: 1144 if pkg in package_dict:
1145 msg = "%s is listed in PACKAGES multiple times, this leads to packaging errors." % pkg 1145 msg = "%s is listed in PACKAGES multiple times, this leads to packaging errors." % pkg
1146 package_qa_handle_error("packages-list", msg, d) 1146 package_qa_handle_error("packages-list", msg, d)
1147 # If debug-with-srcpkg mode is enabled then the src package will have 1147 # If debug-with-srcpkg mode is enabled then the src package will have
1148 # priority over dbg package when assigning the files. 1148 # priority over dbg package when assigning the files.
1149 # This allows src package to include source files and remove them from dbg. 1149 # This allows src package to include source files and remove them from dbg.
1150 elif split_source_package and pkg.endswith("-src"): 1150 elif split_source_package and pkg.endswith("-src"):
1151 package_list.insert(0, pkg) 1151 package_dict[pkg] = (10, i)
1152 elif autodebug and pkg.endswith("-dbg") and not split_source_package: 1152 elif autodebug and pkg.endswith("-dbg"):
1153 package_list.insert(0, pkg) 1153 package_dict[pkg] = (30, i)
1154 else: 1154 else:
1155 package_list.append(pkg) 1155 package_dict[pkg] = (50, i)
1156 package_list = sorted(package_dict.keys(), key=package_dict.get)
1156 d.setVar('PACKAGES', ' '.join(package_list)) 1157 d.setVar('PACKAGES', ' '.join(package_list))
1157 pkgdest = d.getVar('PKGDEST') 1158 pkgdest = d.getVar('PKGDEST')
1158 1159