[pkg-fso-commits] [SCM] FSO frameworkd Debian packaging branch, debian, updated. debian/0.9.5.9+git20110512-1-44-g2b0bd1a

Felix Huber felix.huber at schyf.de
Tue May 15 11:58:56 UTC 2012


The following commit has been merged in the debian branch:
commit ef26fbf7c22109471c1acc1581b4ea8f6ab2c755
Author: Felix Huber <felix.huber at schyf.de>
Date:   Tue Sep 6 21:35:46 2011 +0200

    otimed: fix for non-existing /etc/localtime

diff --git a/framework/subsystems/otimed/otimed.py b/framework/subsystems/otimed/otimed.py
index 04eaf7b..aa68078 100644
--- a/framework/subsystems/otimed/otimed.py
+++ b/framework/subsystems/otimed/otimed.py
@@ -251,7 +251,10 @@ class GSMZoneSource( object ):
         self.zone = zones[0]
         logger.info( "GSM: timezone '%s'", self.zone )
         try:
-            os.remove( "/etc/localtime" )
+            try:
+                os.remove( "/etc/localtime" )
+            except:
+                pass
             shutil.copyfile( "/usr/share/zoneinfo/"+self.zone, "/etc/localtime" )
         except:
             logger.warning( "failed to install time zone file to /etc/localtime" )

-- 
FSO frameworkd Debian packaging



More information about the pkg-fso-commits mailing list