gnome-lirc-properties r42 - in trunk: . gnome_lirc_properties



Author: hadess
Date: Mon Jun 30 16:43:04 2008
New Revision: 42
URL: http://svn.gnome.org/viewvc/gnome-lirc-properties?rev=42&view=rev

Log:
2008-06-30  Bastien Nocera  <hadess hadess net>

	* gnome_lirc_properties/lirc.py: Handle the lircd.conf
	file being missing (it's not broken if it's not there!)
	(Closes: #540898)



Modified:
   trunk/ChangeLog
   trunk/gnome_lirc_properties/lirc.py

Modified: trunk/gnome_lirc_properties/lirc.py
==============================================================================
--- trunk/gnome_lirc_properties/lirc.py	(original)
+++ trunk/gnome_lirc_properties/lirc.py	Mon Jun 30 16:43:04 2008
@@ -1048,6 +1048,9 @@
 
     remote_config = find_remote_config()
 
+    if not os.path.exists(remote_config):
+        return True
+
     if not re.search(
         r'^\s*include\s+%s\s*$' % re.escape(config.LIRC_REMOTE_CONF),
         open(config.LIRC_DAEMON_CONF).read(), re.MULTILINE):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]