From 7cc067e3a5018bd9bafb1291301feaed4f74fa95 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 14 Jun 2018 15:07:39 +0100 Subject: [PATCH] Let's try this again --- contrib/deb/generate.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/contrib/deb/generate.sh b/contrib/deb/generate.sh index 23024592..21840bc1 100644 --- a/contrib/deb/generate.sh +++ b/contrib/deb/generate.sh @@ -15,6 +15,11 @@ PKGNAME=$(sh contrib/semver/name.sh) PKGVERSION=$(sh contrib/semver/version.sh | cut -c 2-) PKGARCH=${PKGARCH-amd64} PKGFILE=$PKGNAME-$PKGVERSION-$PKGARCH.deb +PKGREPLACES=yggdrasil + +if [ $PKGBRANCH = "master" ]; then + PKGREPLACES=yggdrasil-develop +fi if [ $PKGARCH = "amd64" ]; then GOARCH=amd64 GOOS=linux ./build elif [ $PKGARCH = "i386" ]; then GOARCH=386 GOOS=linux ./build @@ -43,7 +48,7 @@ Version: $PKGVERSION Section: contrib/net Priority: extra Architecture: $PKGARCH -Replaces: yggdrasil | yggdrasil-develop +Replaces: $PKGREPLACES Maintainer: Neil Alexander Description: Debian yggdrasil package Binary yggdrasil package for Debian and Ubuntu