replace nonfree=yes with repository=nonfree.

This way it is possible to set up package specific repositories for
i.e. specific devices.
This commit is contained in:
Enno Boland 2014-11-01 13:10:22 +01:00
parent 95b7f907f4
commit 59cc3e0d45
26 changed files with 42 additions and 42 deletions

View file

@ -135,8 +135,8 @@ hook() {
binpkg=${pkgver}.${arch}.xbps
if [ -n "$nonfree" ]; then
repo=$XBPS_REPOSITORY/nonfree
if [ -n "$repository" ]; then
repo=$XBPS_REPOSITORY/$repository
else
repo=$XBPS_REPOSITORY
fi
@ -170,8 +170,8 @@ hook() {
fi
if [ -d "${XBPS_DESTDIR}/${pkgname}-32bit-${version}" ]; then
source ${XBPS_COMMONDIR}/environment/setup-subpkg/subpkg.sh
if [ -n "$nonfree" ]; then
repo=$XBPS_REPOSITORY/multilib/nonfree
if [ -n "$repository" ]; then
repo=$XBPS_REPOSITORY/multilib/$repository
else
repo=$XBPS_REPOSITORY/multilib
fi