From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 54697 invoked by alias); 23 Mar 2016 13:09:10 -0000 Mailing-List: contact cygwin-apps-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-apps-cvs-owner@sourceware.org Received: (qmail 54658 invoked by uid 9795); 23 Mar 2016 13:09:09 -0000 Date: Wed, 23 Mar 2016 13:09:00 -0000 Message-ID: <20160323130909.54626.qmail@sourceware.org> From: jturney@sourceware.org To: cygwin-apps-cvs@sourceware.org Subject: [calm - Cygwin server-side packaging maintenance script] branch master, updated. bc6fd68b03e262b18b5dc6079fb609ac0b181e84 X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: b26ae5b83bad5b1c12ef7d59377278059f0ede5d X-Git-Newrev: bc6fd68b03e262b18b5dc6079fb609ac0b181e84 X-SW-Source: 2016-q1/txt/msg00073.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=bc6fd68b03e262b18b5dc6079fb609ac0b181e84 commit bc6fd68b03e262b18b5dc6079fb609ac0b181e84 Author: Jon Turney Date: Wed Mar 23 10:26:55 2016 +0000 Ignore packages marked as OBSOLETE in cygwin-pkg-maint Update tests appropriately https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=e7eb9c334ff2db9b4a622959b74126d5880ef52d commit e7eb9c334ff2db9b4a622959b74126d5880ef52d Author: Jon Turney Date: Mon Mar 21 20:37:40 2016 +0000 Remove shell script, do everything in python Have I mentioned lately how much I hate shell scripts... v2: Backup existing .ini file, rather than overwriting it Add an option to control where we look for setup executable v3: Use shutil.move rather than os.rename for case when /tmp isn't on the same filesystem as release area Diff: --- calm.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/calm.py b/calm.py index 6cbc690..f1b6b2d 100755 --- a/calm.py +++ b/calm.py @@ -185,7 +185,7 @@ def main(args): # replace setup.ini logging.warning("moving %s to %s" % (tmpfile.name, inifile)) - os.rename(tmpfile.name, inifile) + shutil.move(tmpfile.name, inifile) # compress and re-sign for ext in ['.ini', '.bz2']: