$OpenBSD: patch-hamster___init___py,v 1.2 2009/01/12 13:17:37 ajacoutot Exp $
--- hamster/__init__.py.orig	Tue Nov 25 00:22:05 2008
+++ hamster/__init__.py	Mon Jan 12 14:10:09 2009
@@ -81,6 +81,13 @@ if not exists(HAMSTER_DB):
     except Exception, msg:	
         print 'Error:could not change mode on %s!' % (HAMSTER_DB)
 
+# In case we created the file read-only, change the mode.
+if exists(HAMSTER_DB):
+    try:
+    	os.chmod(HAMSTER_DB, 0664)
+    except Exception , msg:	
+        print 'Error:could not change mode on %s!' % (HAMSTER_DB)
+
 # Init storage
 
 dispatcher = Dispatcher()
