mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Create repository for base components
This commit is contained in:
parent
49784c55a3
commit
98978a366c
2
build.sh
2
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
|
||||
|
||||
|
||||
@ -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}"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user