[diffoscope] 02/04: ppu: don't do run a full ppudump while only looking for PPU file version

Mattia Rizzolo mattia at debian.org
Fri Oct 21 17:51:02 CEST 2016


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

mattia pushed a commit to branch master
in repository diffoscope.

commit 32b916d447f83f88abb9ae572f374a049e079d07
Author: Mattia Rizzolo <mattia at debian.org>
Date:   Fri Oct 21 15:30:26 2016 +0000

    ppu: don't do run a full ppudump while only looking for PPU file version
---
 diffoscope/comparators/ppu.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/diffoscope/comparators/ppu.py b/diffoscope/comparators/ppu.py
index 8101762..fb25898 100644
--- a/diffoscope/comparators/ppu.py
+++ b/diffoscope/comparators/ppu.py
@@ -66,7 +66,7 @@ class PpuFile(File):
             ppu_version = f.read(3).decode('ascii', errors='ignore')
         if not hasattr(PpuFile, 'ppu_version'):
             try:
-                subprocess.check_output(['ppudump', file.path], shell=False, stderr=subprocess.STDOUT)
+                subprocess.check_output(['ppudump', '-vh', file.path], shell=False, stderr=subprocess.STDOUT)
                 PpuFile.ppu_version = ppu_version
             except subprocess.CalledProcessError as e:
                 error = e.output.decode('utf-8', errors='ignore')

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


More information about the diffoscope mailing list