public inbox for cygwin-apps-cvs@sourceware.org
help / color / mirror / Atom feed
* [calm - Cygwin server-side packaging maintenance script] branch master, updated. bc6fd68b03e262b18b5dc6079fb609ac0b181e84
@ 2016-03-23 13:09 jturney
  0 siblings, 0 replies; only message in thread
From: jturney @ 2016-03-23 13:09 UTC (permalink / raw)
  To: cygwin-apps-cvs




https://sourceware.org/git/gitweb.cgi?p=cygwin-apps/calm.git;h=bc6fd68b03e262b18b5dc6079fb609ac0b181e84

commit bc6fd68b03e262b18b5dc6079fb609ac0b181e84
Author: Jon Turney <jon.turney@dronecode.org.uk>
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 <jon.turney@dronecode.org.uk>
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']:


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2016-03-23 13:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-03-23 13:09 [calm - Cygwin server-side packaging maintenance script] branch master, updated. bc6fd68b03e262b18b5dc6079fb609ac0b181e84 jturney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).