chiark / gitweb /
Version tags mangling: Protect dots, as per proposed update to DEP-14.
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 9 Nov 2016 21:37:52 +0000 (21:37 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 19 Dec 2016 16:58:57 +0000 (16:58 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Debian/Dgit.pm
debian/changelog

index a3c2753..1bac97b 100644 (file)
@@ -147,8 +147,9 @@ sub debugcmd {
 
 sub dep14_version_mangle ($) {
     my ($v) = @_;
-    # DEP-14 2014-11-05 "Version Mangling"
+    # DEP-14 patch proposed 2016-11-09  "Version Mangling"
     $v =~ y/~:/_%/;
+    $v =~ s/\.(?=\.|$|lock$)/.#/g;
     return $v;
 }
 
index 5211a3c..4ee6485 100644 (file)
@@ -4,6 +4,7 @@ dgit (2.12~) unstable; urgency=medium
     GIT_ALTERNATE_OBJECT_DIRECTORIES in the pre-receive-hook.
   * dgit-maint-merge(7): Explain how to change to this workflow
     from an existing git workflow.  [Sean Whitton]  Closes:#847807.
+  * Version tags mangling: Protect dots, as per proposed update to DEP-14.
 
   Test suite:
   * Provide and use stunt lintian and debuild, to avoid lintian