xbps-src [chroot]: make sure that we sync with rootdir == /.

This commit is contained in:
Juan RP 2011-06-30 12:33:53 +02:00
parent 55ada9c447
commit 9f2990bd31

View file

@ -202,12 +202,12 @@ prepare_binpkg_repos()
done done
# XBPS utils >= 0.9.0. # XBPS utils >= 0.9.0.
msg_normal "Synchronizing index for remote repositories...\n" msg_normal "Synchronizing index for remote repositories...\n"
${chroot_cmd} ${XBPS_MASTERDIR} ${XBPS_REPO_CMD} \ ${chroot_cmd} ${XBPS_MASTERDIR} sh -c \
-C /usr/local/etc/xbps-conf.plist sync "${XBPS_REPO_CMD} -C /usr/local/etc/xbps-conf.plist sync"
else else
for repo in ${XBPS_REPO_LIST}; do for repo in ${XBPS_REPO_LIST}; do
${chroot_cmd} ${XBPS_MASTERDIR} ${XBPS_REPO_CMD} \ ${chroot_cmd} ${XBPS_MASTERDIR} sh -c \
add ${repo} 2>/dev/null "${XBPS_REPO_CMD} add ${repo}" 2>/dev/null
[ $? -ne 0 ] && \ [ $? -ne 0 ] && \
msg_warn "Failed to sync pkg-index from ${repo}\n" msg_warn "Failed to sync pkg-index from ${repo}\n"
done done