diff options
author | Jacob Siverskog <jacob@teenageengineering.com> | 2014-08-19 16:26:12 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2014-09-06 21:49:34 +0200 |
commit | ac3d777f7ef36cf4546f19a292dc45893d5d54b2 (patch) | |
tree | e4248b88a6803c9d9563f20c2e9c46bc7e1bc6c9 /gentree.py | |
parent | a2abe976bc8cf73d2feabb07ad821f72a13bd585 (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>
Diffstat (limited to 'gentree.py')
-rwxr-xr-x | gentree.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |