From e2885f14216b60a2b3aa5e3d07617893acd1e79b Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Thu, 6 Oct 2016 14:46:59 -0400 Subject: [PATCH] always provide a download link in the announce emails If the project is uploaded to PyPI, give that link. Otherwise give a link to tarballs.openstack.org. Clean up the phrasing for references to the links at the same time. Change-Id: I751c5beeb5357d00516b065a4c2d1091a70c5e31 Signed-off-by: Doug Hellmann --- releasetools/release_notes.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/releasetools/release_notes.py b/releasetools/release_notes.py index 50e03cf..802f3e0 100644 --- a/releasetools/release_notes.py +++ b/releasetools/release_notes.py @@ -91,15 +91,17 @@ This release is part of the {{series}} {% if stable_series %}stable {% endif %}r {%- endif %} {% if source_url %} -With source available at: +The source is available from: {{ source_url }} {% endif %} + +Download the package from: + {% if pypi_url %} - -With package available at: - {{ pypi_url }} +{% else %} + https://tarballs.openstack.org/{{project}}/ {% endif %} {% if bug_url %}