mirror of
https://github.com/YunoHost/vinaigrette.git
synced 2024-09-03 20:06:11 +02:00
Small tweaks to ease buster/bullseye cohabitation/transition
This commit is contained in:
parent
1f5d5f0b64
commit
511725d29a
2 changed files with 13 additions and 3 deletions
|
@ -43,8 +43,8 @@ function build_if_needed()
|
|||
local DISTRIB=$2
|
||||
local LAST_BUILD_FOR_THIS_PACKAGE=$LAST_BUILDS_CACHE/${DISTRIB}_${PACKAGE}
|
||||
|
||||
BRANCH_NIGHTLY="$DISTRIB"
|
||||
[[ $DISTRIB == "buster" ]] && BRANCH_NIGHTLY="dev"
|
||||
[[ $DISTRIB == "buster" ]] && BRANCH_NIGHTLY="buster"
|
||||
[[ $DISTRIB == "bullseye" ]] && BRANCH_NIGHTLY="dev"
|
||||
|
||||
cd $GIT_REPOS/$PACKAGE
|
||||
|
||||
|
|
12
ynh-build
12
ynh-build
|
@ -3,10 +3,20 @@
|
|||
readonly THISSCRIPT=$0
|
||||
readonly PROJECT=$1
|
||||
readonly BRANCH=$2
|
||||
readonly DISTRIB="buster"
|
||||
readonly VERSION=$3
|
||||
readonly TAG=$(echo "debian/$VERSION" | tr '~' '-')
|
||||
|
||||
if [[ "$(echo $VERSION | awk -F'.' '{print $1}')" == "4" ]]
|
||||
then
|
||||
readonly DISTRIB="buster"
|
||||
elif [[ "$(echo $VERSION | awk -F'.' '{print $1}')" == "11" ]]
|
||||
then
|
||||
readonly DISTRIB="bullseye"
|
||||
else
|
||||
readonly DISTRIB="fixyoversionnumberbruh"
|
||||
fi
|
||||
|
||||
|
||||
source /home/vinaigrette/config/config
|
||||
source /home/vinaigrette/scripts/common.sh
|
||||
|
||||
|
|
Loading…
Reference in a new issue