While running gentree.py I got error messages such as 'Failed to
process SmPL patch
collateral-evolutions/generic/0001-group-attr/0001-group_attr_class.cocci',
due to incorrect path handling. This patch always makes gentree always
call pycocci with the absolute path to the output directory.
Signed-off-by: Jacob Siverskog <jacob@teenageengineering.com>
extra_spatch_args = []
if args.profile_cocci:
cmd.append('--profile-cocci')
- cmd.append(args.outdir)
+ cmd.append(os.path.abspath(args.outdir))
print_name = cocci_file[prefix_len:]
if args.verbose:
logwrite("Applying SmPL patch %s" % print_name)