handle backports distribution

This commit is contained in:
Ruben Rodriguez 2019-04-02 13:58:09 -04:00
parent 2a7058ff0b
commit 50e808c53f

View file

@ -55,6 +55,7 @@ find $3 -type f -not -iregex '.*changelog.*' -not -iregex '.*copyright.*' -execd
} }
changelog(){ changelog(){
head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME head -n 1 debian/changelog | grep -q $UPSTREAM-security && REPO=$CODENAME-security || REPO=$CODENAME
[ "$BACKPORT" = true ] || [ "$BACKPORTS" = true ] && REPO=${CODENAME}-backports
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 # Make sure the changelog file is identical between archs