subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1801436 - /subversion/trunk/tools/dist/release.py
Date Mon, 10 Jul 2017 10:28:40 GMT
Author: danielsh
Date: Mon Jul 10 10:28:40 2017
New Revision: 1801436

URL: http://svn.apache.org/viewvc?rev=1801436&view=rev
Log:
* tools/dist/release.py
  (clean_dist): Gracefully handle the case that there's nothing to do.
    Previously, svnmucc would be invoked and print its usage message.

Modified:
    subversion/trunk/tools/dist/release.py

Modified: subversion/trunk/tools/dist/release.py
URL: http://svn.apache.org/viewvc/subversion/trunk/tools/dist/release.py?rev=1801436&r1=1801435&r2=1801436&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Mon Jul 10 10:28:40 2017
@@ -707,7 +707,10 @@ def clean_dist(args):
             svnmucc_cmd += ['rm', dist_release_url + '/' + filename]
 
     # don't redirect stdout/stderr since svnmucc might ask for a password
-    subprocess.check_call(svnmucc_cmd)
+    if 'rm' in svnmucc_cmd:
+        subprocess.check_call(svnmucc_cmd)
+    else:
+        logging.info("Nothing to remove")
 
 #----------------------------------------------------------------------
 # Move to dist



Mime
View raw message