diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-25 21:47:30 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2006-11-25 21:47:30 +0000 |
commit | c3e63d7ac7ad9cb9a3cedd54fc6298e120394efc (patch) | |
tree | f964b73f8e016e94c2ad975304bd3bc30135525e /lib/bb/data.py | |
parent | 09d282d8ba526239e92e850fdf914af2bbbe6f34 (diff) | |
download | bitbake-c3e63d7ac7ad9cb9a3cedd54fc6298e120394efc.tar.gz |
data.py: Fix inherits_class() so it doesn't split lists. Add unexport handling to emit_env.
Diffstat (limited to 'lib/bb/data.py')
-rw-r--r-- | lib/bb/data.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/bb/data.py b/lib/bb/data.py index 707d2806f..d49bc1a4b 100644 --- a/lib/bb/data.py +++ b/lib/bb/data.py @@ -373,6 +373,9 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False): # NOTE: should probably check for unbalanced {} within the var o.write("%s() {\n%s\n}\n" % (varExpanded, val)) else: + if getVarFlag(var, "unexport", d): + o.write('unset %s\n' % varExpanded) + return 1 if getVarFlag(var, "export", d): o.write('export ') else: @@ -540,7 +543,7 @@ def update_data(d): def inherits_class(klass, d): val = getVar('__inherit_cache', d) or [] - if os.path.join('classes', '%s.bbclass' % klass) in val: + if os.path.join('classes', '%s.bbclass' % klass) in val.split(): return True return False |