[PATCH 3/3] gentree.py: keep patch headers for patch refresh

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

 



From: "Luis R. Rodriguez" <mcgrof@xxxxxxxxxxxxxxxx>

Without this change we were removing patch headers
when refreshing patches.

Cc: techtonik@xxxxxxxxx
Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx>
---
 gentree.py |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gentree.py b/gentree.py
index afe3645..5206fc7 100755
--- a/gentree.py
+++ b/gentree.py
@@ -401,7 +401,9 @@ def process(kerneldir, outdir, copy_list_file, git_revision=None,
             return 2
 
         if args.refresh:
-            pfilef = open(pfile + '.tmp', 'w')
+            pfilef = open(pfile + '.tmp', 'a')
+            pfilef.write(p.top_header)
+            pfilef.flush()
             for patchitem in p.items:
                 patched_file = '/'.join(patchitem.source.split('/')[1:])
                 fullfn = os.path.join(args.outdir, patched_file)
-- 
1.7.10.4

--
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