From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 75046 invoked by alias); 4 Nov 2017 16:14:37 -0000 Mailing-List: contact cygwin-apps-help@cygwin.com; run by ezmlm Precedence: bulk Sender: cygwin-apps-owner@cygwin.com List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Mail-Followup-To: cygwin-apps@cygwin.com Received: (qmail 75019 invoked by uid 89); 4 Nov 2017 16:14:32 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.8 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_PASS autolearn=ham version=3.3.2 spammy=oserror, OSError, Hx-spam-relays-external:ESMTPA X-HELO: mx009.vodafonemail.xion.oxcs.net Received: from mx009.vodafonemail.xion.oxcs.net (HELO mx009.vodafonemail.xion.oxcs.net) (153.92.174.39) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 04 Nov 2017 16:14:30 +0000 Received: from vsmx002.vodafonemail.xion.oxcs.net (unknown [192.168.75.192]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTP id 4D219D9C127 for ; Sat, 4 Nov 2017 16:14:28 +0000 (UTC) Received: from Gertrud (p5b2f3f10.dip0.t-ipconnect.de [91.47.63.16]) by mta-6-out.mta.xion.oxcs.net (Postfix) with ESMTPA id 25F87199C27 for ; Sat, 4 Nov 2017 16:14:26 +0000 (UTC) From: Achim Gratz To: cygwin-apps@cygwin.com Subject: [PATCH] calm Date: Sat, 04 Nov 2017 16:14:00 -0000 Message-ID: <87o9oidnry.fsf@Rainer.invalid> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-VADE-STATUS: LEGIT X-SW-Source: 2017-11/txt/msg00010.txt.bz2 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