Thanks, I wasn't aware that fbrnch is so smart.
On Sun, Feb 13, 2022 at 08:09:12PM -0000, E.N. virgo wrote:
> Here is a proof-of-concept one-liner (split up a bit for readability
> purposes):
>
> ```fish
> #!/usr/bin/fish
>
> function get_dependent_pkgs
> dnf -q repoquery --repo=koji --qf='%{sourcerpm}' --whatrequires $argv[1]
> end
>
> function parse_names
> get_dependent_pkgs | rev | cut -d/ -f1 | cut -d- -f3- | rev
get_dependent_pkgs | sed -r 's/-[0-9].*//'
(the first dash followed by a digit is the start of the version part
in the rpm package name.)
> end
>
> # https://src.fedoraproject.org/rpms/fbrnch
> function topo_sort_and_sidetag_build
> fbrnch parallel --sidetag rawhide (parse_names)
> end
Thanks,
Zbyszek
_______________________________________________
devel mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct:
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives:
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure