Call pkgversion function in config

Conflicts:
	helpers/config
This commit is contained in:
Legimet 2016-02-18 14:28:20 -05:00 committed by Ruben Rodriguez
parent 17036ac166
commit 28cedae7e9

View file

@ -55,8 +55,7 @@ find $3 -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execd
}
changelog(){
head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME
PKGVERSION=$(dpkg-parsechangelog --show-field Version)
echo | dch -D $REPO -v ${PKGVERSION}+${REVISION}trisquel${VERSION} "$1"
echo | dch -D $REPO -v `pkgversion`+${REVISION}trisquel${VERSION} "$1"
# Make sure the changelog file is identical between archs
/bin/sed "/-- Trisquel/s/.*/ -- Trisquel GNU\/Linux developers <trisquel-devel@listas.trisquel.info> $DATE/" -i debian/changelog