"""
changelog_file = open('debian/changelog')
changelog = debian.changelog.Changelog(changelog_file, max_blocks=1)
+ if changelog.distributions == "UNRELEASED":
+ logger.error('The distribution of the Debian changelog entry is set '
+ 'to UNRELEASED. Please set it to a proper distribution '
+ 'if you want to release the current state.')
+ sys.exit(1)
version = changelog.full_version
# Replace valid Debian version chars that are invalid for git tagging
new_tag = version.replace('~', '_').replace(':', ',')