From: Richard Purdie Date: Sat, 21 Oct 2006 22:03:13 +0000 (+0000) Subject: package.bbclass: Fix split_locales to remove spurious references to -dbg packages... X-Git-Tag: 2011-1~12599 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=2af3b213e554d34d7f17e41cd9f5abfe842f6a08;p=openembedded-core.git 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) git-svn-id: https://svn.o-hand.com/repos/poky/trunk@810 311d38ba-8fff-0310-9ca6-ca027cbcb966 --- diff --git a/meta/classes/package.bbclass b/meta/classes/package.bbclass index 603f79895d..b8f4f23a18 100644 --- a/meta/classes/package.bbclass +++ b/meta/classes/package.bbclass @@ -268,7 +268,13 @@ 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)