common/xbps-src: fix: cut by colon

This commit is contained in:
Enno Boland 2018-09-07 15:54:08 +02:00
parent c8e4565d12
commit 77a4b3d163
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
1 changed files with 1 additions and 1 deletions

View File

@ -96,7 +96,7 @@ done
cut -d: -f 1,2 ${XBPS_STATEDIR}/.${sourcepkg}_register_pkg | sort -u | \
while IFS=: read -r arch repo; do
paths=$(grep "^$arch:$repo:" "${XBPS_STATEDIR}/.${sourcepkg}_register_pkg" | \
cut -f 2,3 | tr ':' '/')
cut -d : -f 2,3 | tr ':' '/')
if [ -n "${arch}" ]; then
msg_normal "Registering new packages to $repo ($arch)\n"
XBPS_TARGET_ARCH=${arch} $XBPS_RINDEX_CMD ${XBPS_BUILD_FORCEMODE:+-f} -a ${paths}