correctly get pre (#14179)

This commit is contained in:
Samuel Attard 2018-08-17 15:15:45 -07:00 committed by GitHub
parent b900ea44bf
commit c9e704863e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,6 +88,7 @@ def main():
suffix = ''
if '-' in version:
suffix = '-' + version.split('-')[1]
versions[3] = parse_version(version)[3]
version = version.split('-')[0]
if args.dry_run: