eobuilder: fix debian first inc

This commit is contained in:
Jérôme Schneider 2013-12-08 18:05:40 +01:00
parent ec3fcb6b6f
commit 964feb19e2
1 changed files with 1 additions and 1 deletions

View File

@ -191,7 +191,7 @@ for DIST in $DISTS; do
DEBIAN_FIRST_INC=1
DEBIAN_SECOND_INC=1
if [ $LAST_VERSION = $PROJECT_VERSION ]; then
DEBIAN_FIRST_INC=`echo $LAST_DEBIAN_PACKAGE_VERSION | cut -d "~" -f1 | cut -d '-' -f2`
DEBIAN_FIRST_INC=`echo $LAST_DEBIAN_PACKAGE_VERSION | cut -d "+" -f1 | cut -d '-' -f2`
if [[ "$LAST_DEBIAN_PACKAGE_VERSION" == *~* ]]; then
DEBIAN_SECOND_INC=`echo $LAST_DEBIAN_PACKAGE_VERSION | cut -d '~' -f2 | cut -d '+' -f2`
DEBIAN_SECOND_INC=$(($DEBIAN_SECOND_INC + 1))