explicit fail for missing changelog

Change-Id: I37806abc7e8001de78438ce37a293e74803ff927
This commit is contained in:
Neels Hofmeyr 2022-08-18 15:48:37 +02:00
parent 08112b1a28
commit 7cb1aab0f7
1 changed files with 3 additions and 0 deletions

View File

@ -92,6 +92,9 @@ def get_epoch(project):
:returns: the epoch number if set, e.g. "1" or an empty string """
version_epoch = lib.debian.get_last_version_from_changelog(project)
if version_epoch is None:
raise Exception("Failed to get the last version from changelog")
if ":" in version_epoch:
return version_epoch.split(":")[0]