[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-backports
Subject:    [PATCH] backports: always use absolute path to output directory, less probability of pycocci failure
From:       Jacob Siverskog <jacob () teenageengineering ! com>
Date:       2014-08-19 14:26:12
Message-ID: 1408458372-17508-1-git-send-email-jacob () teenageengineering ! com
[Download RAW message or body]

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>
---
 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@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic