openbsd-ports/x11/gnome/hamster-applet/patches/patch-hamster___init___py
ajacoutot 7652c4d62b - small update to hamster-applet-2.24.3 (updated translations)
- add --disable-schemas-install to configure args to stop the systrace
spamming
2009-01-12 13:17:37 +00:00

18 lines
595 B
Plaintext

$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()