[kernel-team] 09/47: Strip .0 from upstream tag names

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Mon Dec 21 00:30:44 UTC 2015


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch master
in repository kernel-team.

commit e8ddb321ef904182b4858ba860b04a3cd15a1106
Author: Ben Hutchings <benh at debian.org>
Date:   Sun Jun 5 22:26:31 2011 +0000

    Strip .0 from upstream tag names
    
    svn path=/people/benh/; revision=17600
---
 scripts/benh/debian-kernel-patches-to-git | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/scripts/benh/debian-kernel-patches-to-git b/scripts/benh/debian-kernel-patches-to-git
index 9ad4b0e..d004b01 100755
--- a/scripts/benh/debian-kernel-patches-to-git
+++ b/scripts/benh/debian-kernel-patches-to-git
@@ -1,6 +1,6 @@
 #!/bin/bash
 
-# Copyright 2010 Ben Hutchings
+# Copyright 2011 Ben Hutchings
 #
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -146,7 +146,7 @@ for version in $(dpkg-parsechangelog -l"$debdir"/debian/changelog --since "$upst
     # Create the DFSG-compliant 'orig' version if necessary
     if [ "$dfsg_rev" != "$prev_dfsg_rev" ]; then
 	if [ -z "$prev_dfsg_rev" ]; then
-	    prev_tag="v$upstream_ver"
+	    prev_tag="v${upstream_ver/.0/}"
 	elif [ "$prev_dfsg_rev" = 0 ]; then
 	    prev_tag="debian/$upstream_ver"
 	else

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/kernel-team.git



More information about the Kernel-svn-changes mailing list