use the time of the system and not the patch are they aren't linear

This commit is contained in:
Sylvestre Ledru 2019-11-14 15:47:02 +01:00
parent f830824f43
commit bd94b9e20d

2
debian/orig-tar.sh vendored
View File

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