[Pkg-privacy-commits] [mat] 39/68: Silence exiftool's stderr

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:41 UTC 2016


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

sascha-guest pushed a commit to branch master
in repository mat.

commit 81bf41933551f6bebf5a0c6a86e47af2e597b653
Author: jvoisin <julien.voisin at dustri.org>
Date:   Fri Dec 4 00:16:00 2015 +0100

    Silence exiftool's stderr
    
    In the past, this might have been useful, but now,
    exiftool works on pretty much every file passed to it by MAT.
    
    Also, if something goes wrong, MAT will know about this thanks to the
    return code != 0.
---
 libmat/exiftool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libmat/exiftool.py b/libmat/exiftool.py
index ef81ed3..78550ed 100644
--- a/libmat/exiftool.py
+++ b/libmat/exiftool.py
@@ -31,7 +31,7 @@ class ExiftoolStripper(parser.GenericParser):
             # Also, '-CommonIFD0' is needed for .tiff files
             subprocess.call(['exiftool', '-all=', '-adobe=', '-exif:all=', '-Time:All=', '-m',
                              '-CommonIFD0=', '-overwrite_original', self.filename],
-                            stdout=open('/dev/null'))
+                            stdout=open('/dev/null'), stderr=open('/dev/null'))
             return True
         except OSError:
             return False

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/mat.git



More information about the Pkg-privacy-commits mailing list