[kernel-team] 01/01: d-k-tag: Only use debian/ prefix for non-native packages

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Aug 16 14:53:12 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 f7320f2bd8bc93b1dc583353bbb42655a6e238b6
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sun Aug 16 16:53:07 2015 +0200

    d-k-tag: Only use debian/ prefix for non-native packages
---
 scripts/d-k-tag | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/scripts/d-k-tag b/scripts/d-k-tag
index 304677a..1aaaabe 100755
--- a/scripts/d-k-tag
+++ b/scripts/d-k-tag
@@ -29,7 +29,11 @@ esac
 # OK, let's do it
 package="$(dpkg-parsechangelog -S Source)"
 ver="$(dpkg-parsechangelog -S Version)"
-tag="debian/$(echo $ver | sed 's/~/_/g; s/:/%/g')"
+tag="$(echo $ver | sed 's/~/_/g; s/:/%/g')"
+if [ "${ver%-*}" != "$ver" ]; then
+    # Non-native, needs debian/ prefix
+    tag="debian/$tag"
+fi
 echo "Creating tag $tag"
 git tag -s -m "Release $package ($ver)." $tag
 

-- 
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