sync: recompute dependencies with aur-graph

This allows to include `provides` in the dependency order.

https://github.com/AladW/aurutils/issues/837#issuecomment-1186543879
This commit is contained in:
Alad Wenter 2022-07-22 22:38:33 +02:00
parent eee6ac5572
commit 9680df6ae9
1 changed files with 4 additions and 1 deletions

View File

@ -405,11 +405,14 @@ if (( graph )); then
if ! { while read -r pkg; do
[[ $pkg ]] && printf '%s\0' "$pkg/.SRCINFO"
done
} | xargs -0 cat -- | aur graph "${graph_args[@]}" >/dev/null
} | xargs -0 cat -- | aur graph "${graph_args[@]}" >"$tmp"/graph
then
error '%s: failed to verify dependency graph' "$argv0"
exit 1
fi < "$tmp"/queue
# Recompute dependencies to include `provides` (#837)
tsort < "$tmp"/graph | tac >"$tmp"/queue
fi
# Inspect package files