From bd94b9e20d9ebfcc402c637d0fc54bcdf3f91333 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 14 Nov 2019 15:47:02 +0100 Subject: [PATCH] use the time of the system and not the patch are they aren't linear --- debian/orig-tar.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh index 795ccdd2..f98cd8c8 100755 --- a/debian/orig-tar.sh +++ b/debian/orig-tar.sh @@ -118,7 +118,7 @@ if test -z "$TAG" -a -z "$FINAL_RELEASE"; then # the + is here to make sure that this version is considered more recent than the svn # dpkg --compare-versions 10~svn374977-1~exp1 lt 10~+2019-svn374977-1~exp1 # to verify that - VERSION="${VERSION}~+$(git log -1 --pretty=format:'%ci-%h'|sed -e "s|+\(.*\)-|+|g" -e "s| ||g" -e "s|-||g" -e "s|:||g" )" + VERSION="${VERSION}~+$(date +'%Y%m%d%I%M')+$(git log -1 --pretty=format:'%h')" else if ! echo "$EXACT_VERSION"|grep -q "$MAJOR_VERSION"; then