secerity 580644 serious
thanks

After looking into the code of your package I had to realize that it is not
compatible to the python-json implementation at all. You should apply the
attached patches to fix your package.



-- 
 Bernd Zeimetz                            Debian GNU/Linux Developer
 http://bzed.de                                http://www.debian.org
 GPG Fingerprints: 06C8 C9A2 EAAD E37E 5B2C BE93 067A AD04 C93B FF79
                   ECA1 E3F2 8E11 2432 D485 DD95 EB36 171A 6FF9 435F
>From d60f1adc97aa3e49eaedd29517136796d5bd9c48 Mon Sep 17 00:00:00 2001
From: Bernd Zeimetz <[email protected]>
Date: Fri, 7 May 2010 15:12:58 +0200
Subject: [PATCH 1/2] Use simplejson if json is not available.

---
 configuration.py |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/configuration.py b/configuration.py
index 7c06f7d..01f7fea 100755
--- a/configuration.py
+++ b/configuration.py
@@ -25,7 +25,11 @@
 This module is made to simplify the process of saving and retrieving saved credentials from previous connections for the other modules of the project.
 """
 
-import json
+try:
+    import json
+except ImportError:
+    import simplejson as json
+
 from datetime import datetime
 import os
 
-- 
1.7.1

>From def4b59e7fe80570fd99263a7d7cf584d2c59b7f Mon Sep 17 00:00:00 2001
From: Bernd Zeimetz <[email protected]>
Date: Fri, 7 May 2010 15:13:44 +0200
Subject: [PATCH 2/2] Depend on python-simplejson | python2.6.

---
 debian/control |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/debian/control b/debian/control
index 99c8b0b..101a4bf 100644
--- a/debian/control
+++ b/debian/control
@@ -22,7 +22,7 @@ Description: Python class to access the Koukaam NETIO-230A
 Package: netio230a-gui
 Architecture: all
 Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}, python-netio230a,
- python-gtk2, python-glade2, python-gnome2, python-gobject, python-json
+ python-gtk2, python-glade2, python-gnome2, python-gobject, python (>= 2.6) | python-simplejson
 Description: GUI to access the Koukaam NETIO-230A
  This package provides a graphical user interface to access the Koukaam
  NETIO-230A, a cheap but advanced multiple socket with Ethernet control.
-- 
1.7.1

Reply via email to