[PATCH] backports: always use absolute path to output directory, less probability of pycocci failure.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxx>
---
 gentree.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gentree.py b/gentree.py
index 5fe6996..9b4db98 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)
-- 
1.8.3.2

--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux