From 98978a366cfea567550cada3208f8fcddff17ddf Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Thu, 3 Sep 2015 08:18:16 -0300 Subject: [PATCH] Create repository for base components --- build.sh | 2 ++ tools/builder_common.sh | 15 +++++++++++++++ 2 files changed, 17 insertions(+) diff --git a/build.sh b/build.sh index 7f97e5d053..17aa160273 100755 --- a/build.sh +++ b/build.sh @@ -415,6 +415,8 @@ for _IMGTOBUILD in $_IMAGESTOBUILD; do fi done +core_pkg_create_repo + echo ">>> NOTE: waiting for jobs: `jobs -l` to finish..." wait diff --git a/tools/builder_common.sh b/tools/builder_common.sh index 57a51bd6cc..6610a2ab9a 100644 --- a/tools/builder_common.sh +++ b/tools/builder_common.sh @@ -61,6 +61,21 @@ git_last_commit() { echo "$CURRENT_COMMIT" > $SCRATCHDIR/build_commit_info.txt } +# Create core pkg repository +core_pkg_create_repo() { + if [ ! -d "${CORE_PKG_PATH}/All" ]; then + return + fi + + echo -n ">>> Creating core packages repository... " + if pkg repo -q -o "${CORE_PKG_PATH}" "${CORE_PKG_PATH}/All"; then + echo "Done!" + else + echo "Failed!" + print_error_pfS + fi +} + # Create core pkg (base, kernel) core_pkg_create() { local _template="${1}"