package.bbclass: Fix split_locales to remove spurious references to -dbg packages...
authorRichard Purdie <rpurdie@rpsys.net>
Sat, 21 Oct 2006 22:22:03 +0000 (22:22 +0000)
committerRichard Purdie <rpurdie@rpsys.net>
Sat, 21 Oct 2006 22:22:03 +0000 (22:22 +0000)
classes/package.bbclass

index c70f08e..bc84b4e 100644 (file)
@@ -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