[PATCH 2/3] lib/patch.py: add top header parsing support

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

 



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

Add a top_header for cases where a patchset might have a
full header that we may want users to keep around.

Cc: techtonik@xxxxxxxxx
Signed-off-by: Luis R. Rodriguez <mcgrof@xxxxxxxxxxxxxxxx>
---
 lib/patch.py |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/patch.py b/lib/patch.py
index 4a7578d..e167b4f 100644
--- a/lib/patch.py
+++ b/lib/patch.py
@@ -201,6 +201,7 @@ class PatchSet(object):
 
     # list of Patch objects
     self.items = []
+    self.top_header = ""
 
     self.errors = 0    # fatal parsing errors
     self.warnings = 0  # non-critical warnings
@@ -303,6 +304,7 @@ class PatchSet(object):
       if headscan:
         while not fe.is_empty and not fe.line.startswith("--- "):
             header.append(fe.line)
+            self.top_header += fe.line
             fe.next()
         if fe.is_empty:
             if p == None:
-- 
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