Commit 5a3337f0 authored by AlmAck's avatar AlmAck
Browse files

.order file improvement, skip sorting

since creating a proper order when we use the .order list is very hard we strictly follow the .order file list
for the other cases we continue to use the sort strategy
parent 02765ae2
......@@ -4,6 +4,7 @@
PACKAGES=()
ORDERLIST_AVAILABLE=false
# Print a colored log message
function _log() {
......@@ -130,6 +131,9 @@ function list_packages() {
# check if there are some .order file
_list_changes _orders '*.order' '%' --no-commit-id --pretty=format: --name-only -r --diff-filter=AM || return 1
_log message ".order file detected, processing..."
PACKAGES=()
ORDERLIST_AVAILABLE=true
for _order in "${_orders[@]}"; do
exec 3<$_order
while read -u3 _line; do
......@@ -168,6 +172,12 @@ function get_validpgpkeys() {
# reorders $PACKAGES such that dependencies are built first
function sort_packages_by_dependency() {
local sorted_packages=()
if [ "$ORDERLIST_AVAILABLE" = true ] ; then
_log message "Nothing to sort, we follow the .order list order"
return 0
fi
#for p in "${PACKAGES[@]}"; do
# _build_add "${p}"
#done
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment