aboutsummaryrefslogtreecommitdiff
path: root/common/hooks/post-pkg
diff options
context:
space:
mode:
authorEnno Boland <eb@s01.de>2014-11-01 12:10:22 +0000
committerEnno Boland <eb@s01.de>2014-11-05 13:15:25 +0000
commit59cc3e0d45dc7552999e2d86cd58e9c7884d9300 (patch)
tree61374724c2dd88caa7645c8ed67084700f6d2531 /common/hooks/post-pkg
parent95b7f907f4b790ec2e0a47643f92b2ac9ece2985 (diff)
downloadvoid-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.tar
void-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.tar.gz
void-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.tar.bz2
void-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.tar.lz
void-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.tar.xz
void-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.tar.zst
void-packages-59cc3e0d45dc7552999e2d86cd58e9c7884d9300.zip
replace nonfree=yes with repository=nonfree.
This way it is possible to set up package specific repositories for i.e. specific devices.
Diffstat (limited to 'common/hooks/post-pkg')
-rw-r--r--common/hooks/post-pkg/00-register-pkg.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/common/hooks/post-pkg/00-register-pkg.sh b/common/hooks/post-pkg/00-register-pkg.sh
index 1308fb84184..4082067bbe8 100644
--- a/common/hooks/post-pkg/00-register-pkg.sh
+++ b/common/hooks/post-pkg/00-register-pkg.sh
@@ -33,8 +33,8 @@ hook() {
if [ -z "$noarch" -a -z "$XBPS_CROSS_BUILD" -a -n "$XBPS_ARCH" -a "$XBPS_ARCH" != "$XBPS_TARGET_MACHINE" ]; then
arch=${XBPS_ARCH}
fi
- if [ -n "$nonfree" ]; then
- pkgdir=$XBPS_REPOSITORY/nonfree
+ if [ -n "$repository" ]; then
+ pkgdir=$XBPS_REPOSITORY/$repository
else
pkgdir=$XBPS_REPOSITORY
fi
@@ -58,8 +58,8 @@ hook() {
if [ "$XBPS_TARGET_MACHINE" != "i686" ]; then
return
fi
- if [ -n "$nonfree" ]; then
- pkgdir=$XBPS_REPOSITORY/multilib/nonfree
+ if [ -n "$repository" ]; then
+ pkgdir=$XBPS_REPOSITORY/multilib/$repository
else
pkgdir=$XBPS_REPOSITORY/multilib
fi