Add handling of USE_NLS_packagename, done the same way as CVSDATE.
authorChris Larson <clarson@kergoth.com>
Thu, 27 Jan 2005 22:07:28 +0000 (22:07 +0000)
committerChris Larson <clarson@kergoth.com>
Thu, 27 Jan 2005 22:07:28 +0000 (22:07 +0000)
BKrev: 41f96620LvvAATva0D1dW9Br_EB-mg

classes/base.bbclass

index 6686d2e..a2ed7a7 100644 (file)
@@ -681,10 +681,15 @@ python __anonymous () {
                        raise bb.parse.SkipPackage("incompatible with host %s" % this_host)
        
        pn = bb.data.getVar('PN', d, 1)
+
        cvsdate = bb.data.getVar('CVSDATE_%s' % pn, d, 1)
        if cvsdate != None:
                bb.data.setVar('CVSDATE', cvsdate, d)
 
+       use_nls = bb.data.getVar('USE_NLS_%s' % pn, d, 1)
+       if use_nls != None:
+               bb.data.setVar('USE_NLS', use_nls, d)
+
        try:
                bb.build.exec_func('read_manifest', d)
                bb.build.exec_func('parse_manifest', d)