From 2dd7ba09177bf279d6517329439d7531982de25c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Wed, 26 Aug 2015 17:00:39 -0300 Subject: update db-init and fix POOLS variables --- src/bin/db-init | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/bin/db-init') diff --git a/src/bin/db-init b/src/bin/db-init index 181e5bf..e63bf5a 100755 --- a/src/bin/db-init +++ b/src/bin/db-init @@ -3,8 +3,7 @@ CONFIG_DIR="$(dirname "$(readlink -e "$0")")/etc" -source "${CONFIG_DIR}/dbscripts.cfg" -source "${CONFIG_DIR}/dbscripts.d/db-functions" +source "${CONFIG_DIR}"/dbscripts{.d/{db-functions,main},}.cfg db-init-usage() { msg "Usage: %s [platform1 platform2 ... platformX]" "${0##*/}" @@ -20,7 +19,7 @@ for 'platform' in "${PLATFORMS[@]}"; do if [ "${_platform_name}" == "${platform}" ]; then source "${CONFIG_DIR}/dbscripts.d/${_platform_name}.cfg" - mkdir -p -- "${REPO_DIR}"/{"${PKG_POOL}","${SRC_POOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" + mkdir -p -- "${REPO_DIR}"/{"${PKG_MAIN_POOLS}","${SRC_MAIN_POOLS}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" else db-init-usage fi @@ -28,6 +27,8 @@ for 'platform' in "${PLATFORMS[@]}"; do else source "${CONFIG_DIR}/dbscripts.d/${platform}.cfg" - mkdir -p -- "${REPO_DIR}"/{"${PKG_POOL}","${SRC_POOL}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" + mkdir -p -- "${REPO_DIR}"/{"${PKG_MAIN_POOLS}","${SRC_MAIN_POOLS}"} "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" fi done + +# "$(dirname "$(readlink -e "$0")")/db-repo-add" -p "${_platform}" "${PKG_REPOS[@]}" -- cgit v1.2.3-2-g168b