[PATCH] calm

Achim Gratz Stromeko@nexgo.de
Sat Nov 4 16:14:00 GMT 2017


Make a failure to chmod the setup.ini file to mode 644 non-fatal.

--- origsrc/calm/calm/package.py	2017-11-04 17:08:36.000000000 +0100
+++ src/calm/calm/package.py	2017-11-04 17:10:43.428620700 +0100
@@ -728,8 +728,10 @@ def write_setup_ini(args, packages, arch
     logging.debug('writing %s' % (args.inifile))
 
     with open(args.inifile, 'w') as f:
-        os.fchmod(f.fileno(), 0o644)
-
+        try:
+            os.fchmod(f.fileno(), 0o644)
+        except (OSError):
+            pass
         tz = time.time()
         # write setup.ini header
         print(textwrap.dedent('''\


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Factory and User Sound Singles for Waldorf rackAttack:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds



More information about the Cygwin-apps mailing list