Package: python-gudev
Version: 147.1-1sam1
Severity: wishlist
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The attached patch, taken from upstream, allows devices in all
subsystems to be listed by passing in None as the parameter to
gudev.Client.query_by_subsystem.

- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (430, 'testing'), (420, 'unstable'), (410, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-gudev depends on:
ii  libc6                         2.11.1-3   Embedded GNU C Library: Shared lib
ii  libglib2.0-0                  2.24.1-1   The GLib library of C routines
ii  libgudev-1.0-0                157-1      GObject-based wrapper library for 
ii  python                        2.5.4-9    An interactive high-level object-o
ii  python-support                1.0.8      automated rebuilding support for P

python-gudev recommends no packages.

python-gudev suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkwchcIACgkQshl/216gEHgqZACgnYhKnkj1QXcVGRVi6hVY6kbi
LHIAnR40qHfIbQyBfOEkNKueZYzwdWws
=cJFn
-----END PGP SIGNATURE-----
diff -Nru python-gudev-147.1/debian/changelog python-gudev-147.1/debian/changelog
--- python-gudev-147.1/debian/changelog	2010-05-31 16:53:32.000000000 +0100
+++ python-gudev-147.1/debian/changelog	2010-06-19 09:48:19.000000000 +0100
@@ -1,3 +1,10 @@
+python-gudev (147.1-1sam1) unstable; urgency=low
+
+  * Apply patch allow-None-subsystem, taken from upstream. Allows devices
+    to be listed in all subsystems by passing in None to query_by_subsystem.
+
+ -- Sam Morris <s...@robots.org.uk>  Sat, 19 Jun 2010 09:47:19 +0100
+
 python-gudev (147.1-1) unstable; urgency=low
 
   * Initial release (Closes: #583863).
diff -Nru python-gudev-147.1/debian/patches/allow-None-subsystem python-gudev-147.1/debian/patches/allow-None-subsystem
--- python-gudev-147.1/debian/patches/allow-None-subsystem	1970-01-01 01:00:00.000000000 +0100
+++ python-gudev-147.1/debian/patches/allow-None-subsystem	2010-06-19 09:47:01.000000000 +0100
@@ -0,0 +1,34 @@
+commit fa1174591720ec9ae99bd8fafbb2a33d28936676
+Author: Miroslav Suchý <msu...@redhat.com>
+Date:   Fri Mar 26 09:58:02 2010 +0100
+
+    [PATCH] allow None or any argument in query_by_subsystem()
+    
+    This allow to list devices in all subsystems.
+
+diff --git a/gudev.defs b/gudev.defs
+index 4bf1b40..5619c9a 100644
+--- a/gudev.defs
++++ b/gudev.defs
+@@ -57,7 +57,7 @@
+   (c-name "g_udev_client_query_by_subsystem")
+   (return-type "GList*")
+   (parameters
+-    '("const-gchar*" "subsystem")
++    '("const-gchar*" "subsystem" (null-ok) (default "NULL"))
+   )
+ )
+ 
+diff --git a/gudev.override b/gudev.override
+index 2669910..6595da3 100644
+--- a/gudev.override
++++ b/gudev.override
+@@ -147,7 +147,7 @@ _wrap_g_udev_client_query_by_subsystem (PyGObject *self, PyObject *args, PyObjec
+     GSList *source;
+     PyObject *dest;
+ 
+-    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "s:GUdevClient.query_by_subsystem",
++    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|z:GUdevClient.query_by_subsystem",
+                                      kwlist, &subsystem))
+         return NULL;
+ 
diff -Nru python-gudev-147.1/debian/patches/series python-gudev-147.1/debian/patches/series
--- python-gudev-147.1/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ python-gudev-147.1/debian/patches/series	2010-06-19 09:47:01.000000000 +0100
@@ -0,0 +1 @@
+allow-None-subsystem

Reply via email to