]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commitdiff
gentoo_build: Check if the distribution is set to UNRELEASED.
authorBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 17 Jan 2014 09:35:57 +0000 (10:35 +0100)
committerBenjamin Drung <benjamin.drung@profitbricks.com>
Fri, 17 Jan 2014 09:35:57 +0000 (10:35 +0100)
gentoo_build

index 972c5909a78055b3d6cc81a64dc2e8998017be86..d50a813a8dd337cca814a217594dc65670a8e6c3 100755 (executable)
@@ -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(':', ',')