diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:52:36 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-17 07:52:36 +0000 |
commit | 1749bf0f4f53574b18e5c0fc679c991ffab570e4 (patch) | |
tree | 1a8e66c93085cc55a8a4fe84e307c4bbfdeb84fa /debian/patches/no-dirty-version | |
parent | Adding upstream version 1:4.13.0. (diff) | |
download | resource-agents-1749bf0f4f53574b18e5c0fc679c991ffab570e4.tar.xz resource-agents-1749bf0f4f53574b18e5c0fc679c991ffab570e4.zip |
Adding debian version 1:4.13.0-1.debian/1%4.13.0-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/no-dirty-version')
-rw-r--r-- | debian/patches/no-dirty-version | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/debian/patches/no-dirty-version b/debian/patches/no-dirty-version new file mode 100644 index 0000000..b03f2a3 --- /dev/null +++ b/debian/patches/no-dirty-version @@ -0,0 +1,27 @@ +Description: Never use a -dirty version in git builds +Author: Christoph Berg <christoph.berg@credativ.de> +Last-Update: 2016-02-02 +--- +This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ +--- a/make/git-version-gen ++++ b/make/git-version-gen +@@ -136,19 +136,6 @@ + + v=`echo "$v" |sed 's/^v//'` + +-# Don't declare a version "dirty" merely because a time stamp has changed. +-git update-index --refresh > /dev/null 2>&1 +- +-dirty=`sh -c 'git diff-index --name-only HEAD' 2>/dev/null` || dirty= +-case "$dirty" in +- '') ;; +- *) # Append the suffix only if there isn't one already. +- case $v in +- *-dirty) ;; +- *) v="$v-dirty" ;; +- esac ;; +-esac +- + # Omit the trailing newline, so that m4_esyscmd can use the result directly. + echo "$v" | tr -d "$nl" + |