Create repository for base components

This commit is contained in:
Renato Botelho 2015-09-03 08:18:16 -03:00
parent 49784c55a3
commit 98978a366c
2 changed files with 17 additions and 0 deletions

View File

@ -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

View File

@ -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}"