xbps-src [chroot]: make sure that we sync with rootdir == /.
This commit is contained in:
parent
55ada9c447
commit
9f2990bd31
1 changed files with 4 additions and 4 deletions
|
@ -202,12 +202,12 @@ prepare_binpkg_repos()
|
|||
done
|
||||
# XBPS utils >= 0.9.0.
|
||||
msg_normal "Synchronizing index for remote repositories...\n"
|
||||
${chroot_cmd} ${XBPS_MASTERDIR} ${XBPS_REPO_CMD} \
|
||||
-C /usr/local/etc/xbps-conf.plist sync
|
||||
${chroot_cmd} ${XBPS_MASTERDIR} sh -c \
|
||||
"${XBPS_REPO_CMD} -C /usr/local/etc/xbps-conf.plist sync"
|
||||
else
|
||||
for repo in ${XBPS_REPO_LIST}; do
|
||||
${chroot_cmd} ${XBPS_MASTERDIR} ${XBPS_REPO_CMD} \
|
||||
add ${repo} 2>/dev/null
|
||||
${chroot_cmd} ${XBPS_MASTERDIR} sh -c \
|
||||
"${XBPS_REPO_CMD} add ${repo}" 2>/dev/null
|
||||
[ $? -ne 0 ] && \
|
||||
msg_warn "Failed to sync pkg-index from ${repo}\n"
|
||||
done
|
||||
|
|
Loading…
Reference in a new issue