Due to build variants, cfg_file paths are written as absolute paths.
Signed-off-by: Thomas Nagy <tnagy@waf.io>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lines = list()
f = open(fname, 'r')
for line in f:
+ if line.startswith("cfg_files ="):
+ # waf writes configuration files as absolute paths
+ continue
if len(line.split('=', 1)) == 2:
key = line.split('=', 1)[0].strip()
if key in exceptions: