From c7f15e3d643c6ab4537b7355b7544b84aabf6039 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?coadde=20=5BM=C3=A1rcio=20Alexandre=20Silva=20Delgado=5D?= Date: Fri, 28 Aug 2015 20:14:25 -0300 Subject: fix db-init, add [firmwares] to rolling/testing/stable repos, and replace [java] to [interpretes] to rolling/testing/stable repos --- src/bin/db-init | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/bin') diff --git a/src/bin/db-init b/src/bin/db-init index 028ae50..42574a4 100755 --- a/src/bin/db-init +++ b/src/bin/db-init @@ -22,11 +22,15 @@ source "${SHARE_DIR}/db-functions" platforms=("${@:1}") +db-init_run() { + mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" +} + for '_platform' in "${PLATFORMS[@]}"; do if [ "${#}" -eq '0' ]; then source "${CONFIG_DIR}/xbs.d/${_platform}.cfg" - mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" + db-init_run else for 'platform' in "${platforms[@]}"; do # Rename ("${plataform}") to easily script usage @@ -35,11 +39,11 @@ for '_platform' in "${PLATFORMS[@]}"; do if [ "${_platform_name}" == "${platform}" ]; then source "${CONFIG_DIR}/xbs.d/${_platform_name}.cfg" - mkdir -p -- "${PKG_MAIN_POOLS}" "${SRC_MAIN_POOLS}" "${CLEANUP_DESTDIR}" "${SOURCE_CLEANUP_DESTDIR}" "${STAGING}" + db-init_run else die "This %s plataform doesn't exist" "${plataform}" fi - donw + done fi done -- cgit v1.2.3-2-g168b