From 57a68e283f3780245fed888045e7a5a3539c27f1 Mon Sep 17 00:00:00 2001 From: Benjamin Drung Date: Fri, 17 Jan 2014 10:35:57 +0100 Subject: [PATCH] gentoo_build: Check if the distribution is set to UNRELEASED. --- gentoo_build | 5 +++++ 1 file changed, 5 insertions(+) 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(':', ',') -- 2.39.5