subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From danie...@apache.org
Subject svn commit: r1843479 - /subversion/trunk/tools/dist/release.py
Date Wed, 10 Oct 2018 17:29:43 GMT
Author: danielsh
Date: Wed Oct 10 17:29:42 2018
New Revision: 1843479

URL: http://svn.apache.org/viewvc?rev=1843479&view=rev
Log:
* tools/dist/release.py
  (write_announcement): Error out when no signatures are found.

See https://mail-archives.apache.org/mod_mbox/subversion-dev/201810.mbox/%3C1539190868.3741277.1537474360.1A2F7F8A%40webmail.messagingengine.com%3E

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=1843479&r1=1843478&r2=1843479&view=diff
==============================================================================
--- subversion/trunk/tools/dist/release.py (original)
+++ subversion/trunk/tools/dist/release.py Wed Oct 10 17:29:42 2018
@@ -1036,10 +1036,12 @@ def get_fileinfo(args):
 
 def write_announcement(args):
     'Write the release announcement.'
-    siginfo = "\n".join(get_siginfo(args, True)) + "\n"
+    siginfo = get_siginfo(args, True)
+    if not siginfo:
+      raise RuntimeError("No signatures found for %s at %s" % (args.version, args.target))
 
     data = { 'version'              : str(args.version),
-             'siginfo'              : siginfo,
+             'siginfo'              : "\n".join(siginfo) + "\n",
              'major-minor'          : args.version.branch,
              'major-minor-patch'    : args.version.base,
              'anchor'               : args.version.get_download_anchor(),



Mime
View raw message