From: Benjamin Drung Date: Fri, 17 Jan 2014 09:35:57 +0000 (+0100) Subject: gentoo_build: Check if the distribution is set to UNRELEASED. X-Git-Url: https://git.uhu-banane.net/?a=commitdiff_plain;h=57a68e283f3780245fed888045e7a5a3539c27f1;p=profitbricks%2Fjenkins-build-scripts.git gentoo_build: Check if the distribution is set to UNRELEASED. --- diff --git a/gentoo_build b/gentoo_build index 972c590..d50a813 100755 --- a/gentoo_build +++ b/gentoo_build @@ -312,6 +312,11 @@ def tag_from_debian_changelog(logger): """ 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(':', ',')