Verified Commit 79371cd2 authored by Morten Linderud's avatar Morten Linderud 🏄 Committed by Jelle van der Waa
Browse files

lib: Implement '--no-reverse-depends' that creates a dependency chain from stdin

When building closed loops of packages you sometime don't want the
entire chain to be resolved to just figure out the order of 5 packages.
This implement `--no-reverse-depends` which resolves the chain and
ensures only the packages from stdin are included in the output chain.

This is useful for rebuild lists or when building tight loops of

    $ arch-rebuild-order --no-reverse-depends cmake meson jsoncpp
    meson jsoncpp cmake
    $ arch-rebuild-order --no-reverse-depends  jsoncpp meson cmake
    meson jsoncpp cmake
Signed-off-by: Morten Linderud's avatarMorten Linderud <>
Co-Authored-By: Jelle van der Waa's avatarJelle van der Waa <>
parent 80d95b48
Pipeline #24171 passed with stages
in 1 minute and 44 seconds