[Pkg-privacy-commits] [mat] 56/68: Improves the previous commit thanks to intrigeri

Sascha Steinbiss sascha at steinbiss.name
Sun Jan 3 12:32:43 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 731444154c52461d69ad1b9331b7f9af900f693d
Author: jvoisin <julien.voisin at dustri.org>
Date:   Sun Dec 20 15:47:13 2015 +0100

    Improves the previous commit thanks to intrigeri
    
    I forgot to add `gi.require_version('Poppler', '0.18')` everywhere,
    and `gi.require_version('Gtk', '3.0')` in mat-gui too
---
 libmat/strippers.py | 2 ++
 mat-gui             | 2 ++
 test/test.py        | 1 +
 3 files changed, 5 insertions(+)

diff --git a/libmat/strippers.py b/libmat/strippers.py
index c170332..53591ad 100644
--- a/libmat/strippers.py
+++ b/libmat/strippers.py
@@ -25,6 +25,8 @@ logging.basicConfig(level=mat.LOGGING_LEVEL)
 # PDF support
 pdfSupport = True
 try:
+    import gi
+    gi.require_version('Poppler', '0.18')
     from gi.repository import Poppler
 except ImportError:
     logging.error('Unable to import Poppler: no PDF support')
diff --git a/mat-gui b/mat-gui
index e313251..238fdd7 100755
--- a/mat-gui
+++ b/mat-gui
@@ -3,6 +3,8 @@
 
 """ Metadata anonymisation toolkit - GUI edition """
 
+import gi
+gi.require_version('Gtk', '3.0')
 from gi.repository import GObject, Gtk, GLib
 from gi.repository import Gdk, GdkPixbuf
 
diff --git a/test/test.py b/test/test.py
index 34bb4b2..3f259a7 100644
--- a/test/test.py
+++ b/test/test.py
@@ -29,6 +29,7 @@ FILE_LIST = zip(clean, dirty)
 try:  # PDF render processing
     import cairo
     import gi
+    gi.require_version('Poppler', '0.18')
     from gi.repository import Poppler
     import pdfrw
 except ImportError:

-- 
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