summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Siverskog <jacob@teenageengineering.com>2014-08-19 16:26:12 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2014-09-06 21:49:34 +0200
commitac3d777f7ef36cf4546f19a292dc45893d5d54b2 (patch)
treee4248b88a6803c9d9563f20c2e9c46bc7e1bc6c9
parenta2abe976bc8cf73d2feabb07ad821f72a13bd585 (diff)
backports: always use absolute path to output directory, less probability of pycocci failure.backports-20140822
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>
-rwxr-xr-xgentree.py2
1 files changed, 1 insertions, 1 deletions
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)