From 2e6f2dd33e3f4aac9c75812ae77a6ca79c963a12 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Wed, 31 Dec 2014 14:52:23 +0100 Subject: [PATCH] autoport: don't increment first release number in REBUILD_MILESTONE mode --- autoport | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/autoport b/autoport index e1c58d2..45b7474 100755 --- a/autoport +++ b/autoport @@ -4,7 +4,7 @@ # # Released under the terms of the GNU GPL release 3 license # -VERSION=0.9.21 +VERSION=0.9.22 BASE_ARCH=i586 BASE_REPOSITORY=devel @@ -601,10 +601,11 @@ for TARGET_ARCH in ${TARGET_ARCHS}; do echo "(FAILED) [can't get repository information for this package]" continue } + src_release_num=`echo $src_release | sed "s|\([0-9.]*\).*|\1|"` [ "$VERBOSE_MODE" ] && echo " -%% COMMAND: LANG=C LC_ALL=C autospec -u ${JOB_CURRENT} -a4 --rebuild --changelog \"$REBUILD_MILESTONE milestone rebuild\"" +%% COMMAND: LANG=C LC_ALL=C autospec -u ${JOB_CURRENT} -a4 --changelog \"$REBUILD_MILESTONE milestone rebuild\" $src_version $src_release_num${REBUILD_MILESTONE}" # FIXME: should be implemented in autodist - LANG=C LC_ALL=C autospec -u ${JOB_CURRENT} -a4 --rebuild --changelog "$REBUILD_MILESTONE milestone rebuild" &>$tmpfile + LANG=C LC_ALL=C autospec -u ${JOB_CURRENT} -a4 --changelog "$REBUILD_MILESTONE milestone rebuild" $src_version $src_release_num${REBUILD_MILESTONE} &>$tmpfile [ $? -gt 0 ] && { if [ "$VERBOSE_MODE" ]; then echo