From 5cbf5f947479b1d219446d7bf1fc53c28ec04b9a Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Tue, 26 Nov 2013 15:52:00 +0000 Subject: [PATCH] Force the version when it is not an rc release --- debian/orig-tar.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh index 6d394be7..3c9d417a 100755 --- a/debian/orig-tar.sh +++ b/debian/orig-tar.sh @@ -126,6 +126,11 @@ cd $PATH_DEBIAN if test -z "$DISTRIBUTION"; then DISTRIBUTION="experimental" fi -dch --allow-lower-version --distribution $DISTRIBUTION --newversion 1:$VERSION-1~exp1 "New snapshot release" + +if test ! -n "$RCRELEASE"; then + EXTRA_DCH_FLAGS="--force-bad-version --allow-lower-version" +fi + +dch $EXTRA_DCH_FLAGS --distribution $DISTRIBUTION --newversion 1:$VERSION-1~exp1 "New snapshot release" exit 0