You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by da...@apache.org on 2017/07/03 02:56:53 UTC

svn commit: r1800580 - /subversion/trunk/tools/dist/release.py

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'.''')