about summary refs log tree commit diff
path: root/pkgs/development/python-modules/poezio
diff options
context:
space:
mode:
authorVladimír Čunát <vcunat@gmail.com>2016-11-17 11:24:17 +0100
committerVladimír Čunát <vcunat@gmail.com>2016-11-17 11:26:00 +0100
commit8b565d6478331b4d48da4dcbba0dcfb27bee8f6c (patch)
treeef4c9defcdc6f8ec428d52f4962cf2c90d172ab4 /pkgs/development/python-modules/poezio
parentea292da4c253893dc8b2ac44faeaaa21255ccdbd (diff)
parentdc9dca4b21be068dfd87c8cbbc8b3f9325624e12 (diff)
downloadnixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.tar
nixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.tar.gz
nixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.tar.bz2
nixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.tar.lz
nixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.tar.xz
nixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.tar.zst
nixlib-8b565d6478331b4d48da4dcbba0dcfb27bee8f6c.zip
Merge #20081: update alsa lib, plugins and utils
Diffstat (limited to 'pkgs/development/python-modules/poezio')
-rw-r--r--pkgs/development/python-modules/poezio/make_default_config_writable.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/poezio/make_default_config_writable.patch b/pkgs/development/python-modules/poezio/make_default_config_writable.patch
new file mode 100644
index 000000000000..03d732e256c4
--- /dev/null
+++ b/pkgs/development/python-modules/poezio/make_default_config_writable.patch
@@ -0,0 +1,25 @@
+diff -ruN a/src/config.py b/src/config.py
+--- a/src/config.py	2015-07-31 19:35:37.000000000 +0000
++++ b/src/config.py	2015-08-03 09:23:34.322098081 +0000
+@@ -14,6 +14,7 @@
+ 
+ import logging.config
+ import os
++import stat
+ import sys
+ import pkg_resources
+ 
+@@ -563,6 +564,13 @@
+             copy2(default, options.filename)
+         elif path.isfile(other):
+             copy2(other, options.filename)
++
++        # Inside the nixstore, the reference file is readonly, so is the copy.
++        # Make it writable by the user who just created it.
++        if os.path.exists(options.filename):
++            os.chmod(options.filename,
++                     os.stat(options.filename).st_mode | stat.S_IWUSR)
++
+         global firstrun
+         firstrun = True
+