From ac3d777f7ef36cf4546f19a292dc45893d5d54b2 Mon Sep 17 00:00:00 2001 From: Jacob Siverskog Date: Tue, 19 Aug 2014 16:26:12 +0200 Subject: backports: always use absolute path to output directory, less probability of pycocci failure. 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 --- gentree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gentree.py b/gentree.py index 5fe69965..9b4db98e 100755 --- a/gentree.py +++ b/gentree.py @@ -725,7 +725,7 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None, 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) -- cgit v1.2.3