From: Jacob Siverskog Date: Tue, 19 Aug 2014 14:26:12 +0000 (+0200) Subject: backports: always use absolute path to output directory, less probability of pycocci... X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=ac3d777f7ef36cf4546f19a292dc45893d5d54b2;p=openwrt%2Fstaging%2Fblogic.git 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 --- diff --git a/gentree.py b/gentree.py index 5fe699650916..9b4db98ea4a3 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)