[linux] 01/03: rt/genpatch.py: make it work with a git repository again

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Thu Aug 11 20:14:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

ukleinek pushed a commit to branch sid
in repository linux.

commit 75ae5b06cf3d24a7a9f2ed83bdeb99431a1bb46d
Author: Uwe Kleine-König <ukleinek at debian.org>
Date:   Thu Aug 11 21:21:20 2016 +0200

    rt/genpatch.py: make it work with a git repository again
---
 debian/patches/features/all/rt/genpatch.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/patches/features/all/rt/genpatch.py b/debian/patches/features/all/rt/genpatch.py
index 740780f..11b921a 100755
--- a/debian/patches/features/all/rt/genpatch.py
+++ b/debian/patches/features/all/rt/genpatch.py
@@ -54,7 +54,7 @@ def main(source, version=None):
                                      env=env, stdout=subprocess.PIPE)
             with child.stdout as pipe:
                 for line in pipe:
-                    name = line.strip('\n')
+                    name = line.decode('utf-8').strip('\n')
                     with open(os.path.join(patch_dir, rt_patch_dir, name)) as \
                             source_patch:
                         patch_from = source_patch.readline()
@@ -104,7 +104,7 @@ def main(source, version=None):
         print('Obsoleted patch', os.path.join(patch_dir, name))
 
 if __name__ == '__main__':
-    if not (1 <= len(sys.argv) <= 2):
+    if not (2 <= len(sys.argv) <= 3):
         print('Usage: %s {TAR [RT-VERSION] | REPO RT-VERSION}' % sys.argv[0], file=sys.stderr)
         print('TAR is a tarball of patches.', file=sys.stderr)
         print('REPO is a git repo containing the given RT-VERSION.', file=sys.stderr)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list