mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 21:57:34 +00:00
Ports: Support multiple port directories
This allows Ports unfit for the main repository to be put elsewhere.
This commit is contained in:
parent
722ae35329
commit
9b7e217dda
2 changed files with 12 additions and 1 deletions
|
@ -528,7 +528,17 @@ package_install_state() {
|
|||
installdepends() {
|
||||
for depend in "${depends[@]}"; do
|
||||
if [ -z "$(package_install_state $depend)" ]; then
|
||||
(cd "${PORT_META_DIR}/../$depend" && ./package.sh --auto)
|
||||
# Split colon seperated string into a list
|
||||
IFS=':' read -ra port_directories <<< "$SERENITY_PORT_DIRS"
|
||||
for port_dir in "${port_directories[@]}"; do
|
||||
if [ -d "${port_dir}/$depend" ]; then
|
||||
(cd "${port_dir}/$depend" && ./package.sh --auto)
|
||||
return
|
||||
fi
|
||||
done
|
||||
|
||||
>&2 echo "Error: Dependency $depend could not be found."
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue