[Reproducible-commits] [debbindiff] 01/01: Prevent empty line at end of output

Reiner Herrmann reiner at reiner-h.de
Sun Aug 2 20:56:33 UTC 2015


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

deki-guest pushed a commit to branch master
in repository debbindiff.

commit 9d1b5897d2dae7ad420856a5b411c25f8ae02a07
Author: Reiner Herrmann <reiner at reiner-h.de>
Date:   Sun Aug 2 22:56:17 2015 +0200

    Prevent empty line at end of output
---
 debbindiff/comparators/squashfs.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debbindiff/comparators/squashfs.py b/debbindiff/comparators/squashfs.py
index 62d2725..b6ba975 100644
--- a/debbindiff/comparators/squashfs.py
+++ b/debbindiff/comparators/squashfs.py
@@ -155,7 +155,7 @@ class SquashfsContainer(Archive):
         cmd = ['unsquashfs', '-d', '', '-lls', path]
         output = subprocess.check_output(cmd, shell=False)
         header = True
-        for line in output.split('\n'):
+        for line in output.rstrip('\n').split('\n'):
             if header:
                 if line == '':
                     header = False

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



More information about the Reproducible-commits mailing list