fix error/warning reporting for sdist name mismatch

When the sdist doesn't match the expected value, check the project not
the deliverable to see if it was set explicitly to build the message.

Change-Id: I6d6af1671f1baa47d16895a0b4afc816867fb88f
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
This commit is contained in:
Doug Hellmann 2017-03-02 13:39:29 -05:00
parent 0d8a9262af
commit 2e14c80e73

View File

@ -293,7 +293,7 @@ def validate_releases(deliverable_info, zuul_layout,
os.path.basename(project['repo']),
)
if sdist != expected:
if 'tarball-base' in deliverable_info:
if 'tarball-base' in project:
action = 'is set to'
else:
action = 'defaults to'