The following commit has been merged in the master branch:
commit aa3add4dbc5b98313a225d9665a3bbc38e71ac07
Author: Raphaël Hertzog <[email protected]>
Date: Sat Oct 29 20:40:23 2011 +0200
Add support of tildes in dpkg's version
Dpkg's version is generated from the name of the closest git tag with the
help of get-version. But tag names can't contain tildes. Thus we use
underscore instead. This commit fixes get-version to replace underscores
back to tildes.
diff --git a/get-version b/get-version
index ed7e624..36a2a27 100755
--- a/get-version
+++ b/get-version
@@ -22,8 +22,9 @@ if [ -f .dist-version ]; then
# Get the version from the file distributed in the tarball.
version=$(cat .dist-version)
elif [ -d .git ]; then
- # Ger the version from the git repository.
- version=$(git describe --abbrev=4 HEAD 2>/dev/null)
+ # Get the version from the git repository. Since tags can't contain
+ # tildes, we use underscore instead. Reverse that switch here.
+ version=$(git describe --abbrev=4 HEAD 2>/dev/null | sed -e 's/_/~/g')
# Check if we are on a dirty checkout.
git update-index --refresh -q >/dev/null
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]