[oe-commits] org.oe.dev 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)

rpurdie commit openembedded-commits at lists.openembedded.org
Sat Oct 21 22:30:33 UTC 2006


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)

Author: rpurdie at openembedded.org
Branch: org.openembedded.dev
Revision: 3211e97a3c6fd84cea5e52d75565f20231ff0093
ViewMTN: http://monotone.openembedded.org/revision.psp?id=3211e97a3c6fd84cea5e52d75565f20231ff0093
Files:
1
classes/package.bbclass
Diffs:

#
# mt diff -rda5b47dbb62a8fcba71d6877ab84fb8be5420ff2 -r3211e97a3c6fd84cea5e52d75565f20231ff0093
#
# 
# 
# patch "classes/package.bbclass"
#  from [f0c24df8d83cb5eddc8dd139f1b482595a08a080]
#    to [9395b02e8806bf8c7ee25f79bc774e7a4bdc9a57]
# 
============================================================
--- classes/package.bbclass	f0c24df8d83cb5eddc8dd139f1b482595a08a080
+++ classes/package.bbclass	9395b02e8806bf8c7ee25f79bc774e7a4bdc9a57
@@ -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






More information about the Openembedded-commits mailing list