at v192 757 B view raw
1diff -ruN a/src/config.py b/src/config.py 2--- a/src/config.py 2015-07-31 19:35:37.000000000 +0000 3+++ b/src/config.py 2015-08-03 09:23:34.322098081 +0000 4@@ -14,6 +14,7 @@ 5 6 import logging.config 7 import os 8+import stat 9 import sys 10 import pkg_resources 11 12@@ -563,6 +564,13 @@ 13 copy2(default, options.filename) 14 elif path.isfile(other): 15 copy2(other, options.filename) 16+ 17+ # Inside the nixstore, the reference file is readonly, so is the copy. 18+ # Make it writable by the user who just created it. 19+ if os.path.exists(options.filename): 20+ os.chmod(options.filename, 21+ os.stat(options.filename).st_mode | stat.S_IWUSR) 22+ 23 global firstrun 24 firstrun = True 25