projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
abce93c
)
dch: Don't crash when we fail to get an upstream version
author
Guido Günther
<agx@sigxcpu.org>
Sat, 28 May 2022 14:40:48 +0000
(16:40 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Sat, 28 May 2022 14:42:58 +0000
(16:42 +0200)
Closes: #879495
gbp/scripts/dch.py
patch
|
blob
|
history
diff --git
a/gbp/scripts/dch.py
b/gbp/scripts/dch.py
index 325a0372de29249de2b8238e2361f77407ebbed1..ff4fb95c89b490acbb9893aebb771cdf97e6fda0 100644
(file)
--- 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