diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-01-17 09:06:14 +0100 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2020-01-17 09:06:14 +0100 |
commit | 15f0c6938a0ae2b88a498bd2fed7f353a5c51558 (patch) | |
tree | 63cc4220466283a525a89f69bf8ee7c886a8f21d | |
parent | 76fab02113b0821c9bad447f357232ad9c3259eb (diff) | |
download | ATCD-15f0c6938a0ae2b88a498bd2fed7f353a5c51558.tar.gz |
Removing tag can fail when the tag is not yet there
* ACE/bin/make_release.py:
-rwxr-xr-x | ACE/bin/make_release.py | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/ACE/bin/make_release.py b/ACE/bin/make_release.py index c9b7d60c10f..255204fdb15 100755 --- a/ACE/bin/make_release.py +++ b/ACE/bin/make_release.py @@ -117,6 +117,19 @@ def ex (command): print "ERROR: Nonzero return value from " + command raise Exception +def ex_failureok (command): + from os import system + global opts + vprint ("Executing " + command) + + if not opts.take_action: + print "Executing " + command + return + + status = system(command) + if status != 0: + print "WARNING: Nonzero return value from " + command + ### # Checks that the users environment is sane. # @@ -528,7 +541,7 @@ def update_latest_tag (product, which, branch): # Remove tag locally vprint ("Removing tag %s" % (tagname)) - ex ("cd $DOC_ROOT/" + product + " && git tag -d " + tagname) + ex_failureok ("cd $DOC_ROOT/" + product + " && git tag -d " + tagname) vprint ("Placing tag %s" % (tagname)) ex ("cd $DOC_ROOT/" + product + " && git tag -a " + tagname + " -m\"" + tagname + "\"") |