hamster-applet r642 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r642 - trunk/hamster
- Date: Mon, 24 Nov 2008 23:28:52 +0000 (UTC)
Author: tbaugis
Date: Mon Nov 24 23:28:52 2008
New Revision: 642
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=642&view=rev
Log:
when copying database file, make sure that we have proper permissions
fixes bug 562190. Patch with modifications by Jasper Lievisse Adriaanse .
Modified:
trunk/hamster/__init__.py
Modified: trunk/hamster/__init__.py
==============================================================================
--- trunk/hamster/__init__.py (original)
+++ trunk/hamster/__init__.py Mon Nov 24 23:28:52 2008
@@ -75,6 +75,12 @@
print "Database not found in %s - installing default from %s!" % (HAMSTER_DB, SHARED_DATA_DIR)
copyfile(join(SHARED_DATA_DIR, DB_FILE), HAMSTER_DB)
+ #change also permissions - sometimes they are 444
+ try:
+ os.chmod(HAMSTER_DB, 0664)
+ except Exception, msg:
+ print 'Error:could not change mode on %s!' % (HAMSTER_DB)
+
# Init storage
dispatcher = Dispatcher()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]