Add custom build for python-zeroconf

This commit is contained in:
Alexandre Aubin 2021-08-19 19:48:03 +02:00
parent 5ea87058f7
commit f6ceddbd0f

View file

@ -43,7 +43,7 @@ function main()
function validate_arguments()
{
[[ $PACKAGE =~ ^metronome|miniupnpc|gevent-websocket$ ]] || critical "Invalid package $PACKAGE"
[[ $PACKAGE =~ ^metronome|miniupnpc|gevent-websocket|python-zeroconf$ ]] || critical "Invalid package $PACKAGE"
#[[ $PACKAGE =~ ^metronome|rspamd|unscd|python-toml$ ]] || critical "Invalid package $PACKAGE" # (These are the old stuff for which we had custom builds in stretch)
[[ $BRANCH =~ ^testing|stable|unstable$ ]] || critical "Invalid branch $BRANCH"
[[ "$(tty)" != "not a tty" ]] || critical "You aint in a tty (are you in a 'lxc exec' ?) The script can't run because pbuilder won't be happy :|"
@ -53,6 +53,11 @@ function validate_arguments()
# Build recipe / tweaks #
# ##################### #
function tweak_python-zeroconf()
{
readonly VERSION="$(dpkg-parsechangelog -S Version 2>/dev/null)+ynh$DISTRIB_N"
}
function tweak_miniupnpc()
{
readonly VERSION="$(dpkg-parsechangelog -S Version 2>/dev/null)+ynh$DISTRIB_N"