summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2006-10-21 22:22:03 +0000
committerRichard Purdie <rpurdie@rpsys.net>2006-10-21 22:22:03 +0000
commit33acb0ba0c1dbda1892755bb6538a0cdb547f26f (patch)
tree3e7c546fd69e0b315f6c7b4c0ad94f3c649e9c95 /classes
parent257d0988bb4bda7b46c529746b2dac2c6d898369 (diff)
package.bbclass: Fix split_locales to remove spurious references to -dbg packages. The way it selects the principle package name needs totally reworking as the current code is flawed but apply a workaround for now (this is unrelated to other changes to package.bbclass)
Diffstat (limited to 'classes')
-rw-r--r--classes/package.bbclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/classes/package.bbclass b/classes/package.bbclass
index c70f08eefe..bc84b4ebf8 100644
--- a/classes/package.bbclass
+++ b/classes/package.bbclass
@@ -268,8 +268,14 @@ python package_do_split_locales() {
locales = os.listdir(localedir)
+ # This is *really* broken
mainpkg = packages[0]
-
+ # At least try and patch it up I guess...
+ if mainpkg.find('-dbg'):
+ mainpkg = mainpkg.replace('-dbg', '')
+ if mainpkg.find('-dev'):
+ mainpkg = mainpkg.replace('-dev', '')
+
for l in locales:
ln = legitimize_package_name(l)
pkg = pn + '-locale-' + ln