diff options
author | Renato Botelho <renato@netgate.com> | 2015-09-03 08:18:16 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2015-09-03 08:18:16 -0300 |
commit | 98978a366cfea567550cada3208f8fcddff17ddf (patch) | |
tree | 7c5d13168c2c8df7361d15ab7df6fe20ecec81e5 | |
parent | 49784c55a338cf08d969bf46f785d395e4325e8d (diff) | |
download | pfsense-98978a366cfea567550cada3208f8fcddff17ddf.zip pfsense-98978a366cfea567550cada3208f8fcddff17ddf.tar.gz |
Create repository for base components
-rwxr-xr-x | build.sh | 2 | ||||
-rw-r--r-- | tools/builder_common.sh | 15 |
2 files changed, 17 insertions, 0 deletions
@@ -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 57a51bd..6610a2a 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}" |