aboutsummaryrefslogtreecommitdiffhomepage
path: root/gbp/scripts/dch.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/scripts/dch.py')
-rw-r--r--gbp/scripts/dch.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gbp/scripts/dch.py b/gbp/scripts/dch.py
index 325a0372..ff4fb95c 100644
--- a/gbp/scripts/dch.py
+++ b/gbp/scripts/dch.py
@@ -50,6 +50,9 @@ def guess_version_from_upstream(repo, upstream_tag_format, upstream_branch, cp=N
upstream_branch,
epoch=epoch,
debian_release=False)
+ if version is None:
+ gbp.log.warn("Failed to find upstream version tag")
+ return None
gbp.log.debug("Found upstream version %s." % version)
if compare_versions(version, cmp_version) > 0:
return "%s-1" % version