subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hwri...@apache.org
Subject svn commit: r1170183 - /subversion/trunk/tools/dist/release.py
Date Tue, 13 Sep 2011 13:56:06 GMT
Author: hwright
Date: Tue Sep 13 13:56:05 2011
New Revision: 1170183

URL: http://svn.apache.org/viewvc?rev=1170183&view=rev
Log:
* tools/dist/release.py
  (roll_tarballs): Early error if the deploy directory already exists.

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=1170183&r1=1170182&r2=1170183&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Tue Sep 13 13:56:05 2011
@@ -399,9 +399,12 @@ def roll_tarballs(args):
         # Make sure CHANGES is sync'd.    
         compare_changes(repos, branch, args.revnum)
     
-    # Create the output directory
-    if not os.path.exists(get_deploydir(args.base_dir)):
-        os.mkdir(get_deploydir(args.base_dir))
+    # Ensure the output directory doesn't already exist
+    if os.path.exists(get_deploydir(args.base_dir)):
+        raise RuntimeError('output directory \'%s\' already exists'
+                                            % get_deploydir(args.base_dir))
+
+    os.mkdir(get_deploydir(args.base_dir))
 
     # For now, just delegate to dist.sh to create the actual artifacts
     extra_args = ''



Mime
View raw message