sync: recompute dependencies with aur-graph

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

https://github.com/AladW/aurutils/issues/837#issuecomment-1186543879
pull/1016/head
Alad Wenter 2 months ago
parent eee6ac5572
commit 9680df6ae9
  1. 5
      lib/aur-sync

@ -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

Loading…
Cancel
Save