From ff412882defd55672da1ce740a2def0a00806601 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 27 Apr 2010 23:22:48 +0200 Subject: [PATCH] Improve messages while entering into the chroot. --HG-- extra : convert_revision : 13354e2dc1a3c13071a9b662f74609ca79a4dd78 --- xbps-src/shutils/chroot.sh.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xbps-src/shutils/chroot.sh.in b/xbps-src/shutils/chroot.sh.in index 3e955a6a2f..673376980f 100644 --- a/xbps-src/shutils/chroot.sh.in +++ b/xbps-src/shutils/chroot.sh.in @@ -157,7 +157,7 @@ prepare_binpkg_repos() if [ ! -f ${XBPS_PACKAGESDIR}/${xbps_machine}/pkg-index.plist ]; then : else - msg_normal "Registering local binpkg repo..." + msg_normal "Registering local repository..." ${chroot_cmd} $XBPS_MASTERDIR \ ${XBPS_REPO_CMD} add /xbps_packagesdir 2>/dev/null [ $? -eq 0 ] && touch -f \ @@ -167,7 +167,7 @@ prepare_binpkg_repos() for repo in ${XBPS_REPO_LIST}; do ${chroot_cmd} ${XBPS_MASTERDIR} ${XBPS_REPO_CMD} \ add ${repo} 2>/dev/null - [ $? -eq 0 ] && msg_normal "Registered remote repository: ${repo}" + [ $? -ne 0 ] && msg_warn "Failed to sync pkg-index from ${repo}" done }