xbps-src: add all subrepos if an alternate repo is set.

This commit is contained in:
Juan RP 2014-12-30 08:23:42 +01:00
parent 8f68b72f5e
commit 88d6f0a9f5

View file

@ -51,7 +51,14 @@ _EOF
( \
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}"; \
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}/nonfree"; \
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}/debug"; \
) > $XBPS_MASTERDIR/etc/xbps.d/00-repository-alternative.conf
if [ "$XBPS_MACHINE" = "x86_64" ]; then
( \
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}/multilib"; \
echo "repository=/host/binpkgs/${XBPS_ALT_REPOSITORY}/multilib/nonfree"; \
) >> $XBPS_MASTERDIR/etc/xbps.d/00-repository-alternative.conf
fi
else
rm -f $XBPS_MASTERDIR/etc/xbps.d/00-repository-alternative.conf
fi