package.bbclass: Fix split_locales to remove spurious references to -dbg packages...
authorRichard Purdie <richard@openedhand.com>
Sat, 21 Oct 2006 22:03:13 +0000 (22:03 +0000)
committerRichard Purdie <richard@openedhand.com>
Sat, 21 Oct 2006 22:03:13 +0000 (22:03 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@810 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/package.bbclass

index 603f798..b8f4f23 100644 (file)
@@ -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)