subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1800580 - /subversion/trunk/tools/dist/release.py
Date Mon, 03 Jul 2017 02:56:53 GMT
Author: danielsh
Date: Mon Jul  3 02:56:53 2017
New Revision: 1800580

URL: http://svn.apache.org/viewvc?rev=1800580&view=rev
Log:
release.py: Unbreak the 'write-downloads' command.

The failure mode was:

    Traceback (most recent call last):
      File "./release.py", line 1136, in <module>
        main()
      File "./release.py", line 1132, in main
        args.func(args)
      File "./release.py", line 812, in write_downloads
        sha1info = get_sha1info(args, replace=True)
      File "./release.py", line 764, in get_sha1info
        target = get_target(args)
      File "./release.py", line 227, in get_target
        if args.target:
    AttributeError: 'Namespace' object has no attribute 'target'

* tools/dist/release.py
  (main.'write-downloads'): Take the --target option.

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=1800580&r1=1800579&r2=1800580&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Mon Jul  3 02:56:53 2017
@@ -1085,6 +1085,9 @@ def main():
                     help='''Output to stdout template text for the download
                             table for subversion.apache.org''')
     subparser.set_defaults(func=write_downloads)
+    subparser.add_argument('--target',
+                    help='''The full path to the directory containing
+                            release artifacts.''')
     subparser.add_argument('version', type=Version,
                     help='''The release label, such as '1.7.0-alpha1'.''')
 



Mime
View raw message