This is the mail archive of the
cygwin-apps
mailing list for the Cygwin project.
[PATCH] calm
- From: Achim Gratz <Stromeko at nexgo dot de>
- To: cygwin-apps at cygwin dot com
- Date: Sat, 04 Nov 2017 17:14:25 +0100
- Subject: [PATCH] calm
- Authentication-results: sourceware.org; auth=none
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