2
0
mirror of https://gitlab.com/ita1024/waf.git synced 2024-12-24 18:25:03 +01:00

Do not strip / from conf.check(x=, uselib_store=Y) stored arguments

This commit is contained in:
Thomas Nagy 2016-04-04 18:59:45 +02:00
parent 06cb261cd2
commit e8cf059004
No known key found for this signature in database
GPG Key ID: 67A565EDFDF90E64

View File

@ -691,13 +691,9 @@ def post_check(self, *k, **kw):
_vars |= ccroot.USELIB_VARS[x]
for k in _vars:
lk = k.lower()
if lk in kw:
val = kw[lk]
# remove trailing slash
if isinstance(val, str):
val = val.rstrip(os.path.sep)
self.env.append_unique(k + '_' + kw['uselib_store'], Utils.to_list(val))
x = k.lower()
if x in kw:
self.env.append_unique(k + '_' + kw['uselib_store'], kw[x])
return is_success
@conf