This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] calm


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]