[fix] Custom apt sources was not created if distrib=stable

This commit is contained in:
opi 2016-05-10 09:35:24 +02:00
parent b0fc51ba59
commit db90f80511

View file

@ -151,7 +151,9 @@ setup_package_source() {
# Debian repository
local CUSTOMDEB="deb http://repo.yunohost.org/debian/ jessie stable"
if [[ "$DISTRIB" == "test" ]] || [[ "$DISTRIB" == "testing" ]] ; then
if [[ "$DISTRIB" == "stable" ]] ; then
echo "$CUSTOMDEB" >> $CUSTOMAPT
elif [[ "$DISTRIB" == "test" ]] || [[ "$DISTRIB" == "testing" ]] ; then
echo "$CUSTOMDEB testing" >> $CUSTOMAPT
elif [[ "$DISTRIB" == "daily" ]] || [[ "$DISTRIB" == "unstable" ]] ; then
echo "$CUSTOMDEB testing unstable" > $CUSTOMAPT