mirror of
https://git.yoctoproject.org/git/poky
synced 2026-01-01 13:58:04 +00:00
bitbake data.py: Fix unexport handling (#OE3135)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2948 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
c033c91c6b
commit
498b4f45da
|
|
@ -370,9 +370,6 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
|
|||
if type(val) is not types.StringType:
|
||||
return 0
|
||||
|
||||
if getVarFlag(var, 'matchesenv', d):
|
||||
return 0
|
||||
|
||||
if (var.find("-") != -1 or var.find(".") != -1 or var.find('{') != -1 or var.find('}') != -1 or var.find('+') != -1) and not all:
|
||||
return 0
|
||||
|
||||
|
|
@ -382,6 +379,9 @@ def emit_var(var, o=sys.__stdout__, d = init(), all=False):
|
|||
o.write('unset %s\n' % varExpanded)
|
||||
return 1
|
||||
|
||||
if getVarFlag(var, 'matchesenv', d):
|
||||
return 0
|
||||
|
||||
val.rstrip()
|
||||
if not val:
|
||||
return 0
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user