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.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass
index e5d444b161..a78f11130f 100644
--- a/meta/classes/package.bbclass
+++ b/meta/classes/package.bbclass
@@ -139,6 +139,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
139 139
140 140
141 packages = d.getVar('PACKAGES', True).split() 141 packages = d.getVar('PACKAGES', True).split()
142 split_packages = []
142 143
143 if postinst: 144 if postinst:
144 postinst = '#!/bin/sh\n' + postinst + '\n' 145 postinst = '#!/bin/sh\n' + postinst + '\n'
@@ -172,6 +173,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
172 continue 173 continue
173 on = legitimize_package_name(m.group(1)) 174 on = legitimize_package_name(m.group(1))
174 pkg = output_pattern % on 175 pkg = output_pattern % on
176 split_packages.append(pkg)
175 if not pkg in packages: 177 if not pkg in packages:
176 if prepend: 178 if prepend:
177 packages = [pkg] + packages 179 packages = [pkg] + packages
@@ -206,6 +208,7 @@ def do_split_packages(d, root, file_regex, output_pattern, description, postinst
206 hook(f, pkg, file_regex, output_pattern, m.group(1)) 208 hook(f, pkg, file_regex, output_pattern, m.group(1))
207 209
208 d.setVar('PACKAGES', ' '.join(packages)) 210 d.setVar('PACKAGES', ' '.join(packages))
211 return split_packages
209 212
210PACKAGE_DEPENDS += "file-native" 213PACKAGE_DEPENDS += "file-native"
211 214