[Xfce4-commits] [apps/xfburn] 02/02: added udev property ID_REVISION as a fallback

noreply at xfce.org noreply at xfce.org
Mon Jan 27 21:36:35 CET 2020


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

k   a   t   a   n   a   s   t   e   e   l       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfburn.

commit c8260273ee2f93306ebe3d2fd7253a24460e6678
Author: Rene Kjellerup <rk.katana.steel at gmail.com>
Date:   Mon Dec 30 00:52:51 2019 -0800

    added udev property ID_REVISION as a fallback
    
    for implementing feature request from bug #14467
    
    using gudev if available or from libburn otherwise
---
 xfburn/xfburn-udev-manager.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/xfburn/xfburn-udev-manager.c b/xfburn/xfburn-udev-manager.c
index 2e65a32..b12b29b 100644
--- a/xfburn/xfburn-udev-manager.c
+++ b/xfburn/xfburn-udev-manager.c
@@ -257,9 +257,10 @@ xfburn_udev_manager_get_devices (XfburnUdevManager *udevman, gint *drives, gint
         name = xfburn_device_set_name (device, str_vendor, str_model);
 
         /* revision */
-	rev = g_udev_device_get_sysfs_attr(l->data, "device/rev");
-        if (rev != NULL)
-            g_object_set (G_OBJECT (device), "revision", rev, NULL);
+	rev = g_udev_device_get_sysfs_attr (l->data, "device/rev");
+        if (rev == NULL)
+          rev = g_udev_device_get_property (l->data, "ID_REVISION");
+        g_object_set (G_OBJECT (device), "revision", rev, NULL);
 
         addr = g_udev_device_get_device_file(l->data);
 #ifdef DEBUG_NULL_DEVICE

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list