summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Benjamin Barenblat <bbaren@google.com>2021-04-08 10:20:46 -0400
committerGravatar Benjamin Barenblat <bbaren@google.com>2021-04-08 10:20:46 -0400
commit2b91b17d526b464840a3f45504c594cdb50152c5 (patch)
tree7b0917c0df51a3f53c1917d1d0dce87101b8b1db
parent9d1b3a65dcf18b7bd8178fdb1b15e2c4fbfe3e99 (diff)
Add uversionmangle to debian/watch to add 0~ prefix
-rw-r--r--debian/changelog2
-rw-r--r--debian/watch2
2 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog
index 28c28b34..c821ca3c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
abseil (0~20200923.3-4) UNRELEASED; urgency=medium
* Correct debian/watch search URLs to avoid picking up rc versions.
+ * Mangle upstream version in debian/watch to match manual mangling in
+ debian/changelog.
-- Benjamin Barenblat <bbaren@debian.org> Thu, 08 Apr 2021 10:14:59 -0400
diff --git a/debian/watch b/debian/watch
index 61202c86..e621a589 100644
--- a/debian/watch
+++ b/debian/watch
@@ -13,6 +13,6 @@
# the License.
version=4
-opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%" \
+opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%@PACKAGE@-$1.tar.gz%, uversionmangle=s/^/0~/" \
https://github.com/abseil/abseil-cpp/releases \
(?:.*?/)?v?(\d[\d.]*)\.tar\.gz