On 23. 07. 22 0:22, Maxwell G via devel wrote:
(It seems my previous message didn't send properly...)
On 22/07/22 10:24PM, Fabio Valentini wrote:
the script that determines leaf packages in the Rust SIG
Can you provide a link to this?
$ (dnf repoquery --whatrequires pcre ; dnf repoquery --whatrequires
pcre-cpp ; dnf repoquery --whatrequires pcre-devel ; dnf repoquery
--whatrequires pcre-static ; dnf repoquery --whatrequires pcre-tools ;
dnf repoquery --whatrequires pcre-utf16 ; dnf repoquery --whatrequires
pcre-utf32) | sort | uniq | grep src
It's actually possible to pass --whatrequires mutliple times with all of
the dependencies, instead of running multiple queries. e.g.:
sudo dnf repoquery --whatrequires pcre --whatrequires pcre-cpp --whatrequires pcre-devel --whatrequires pcre-static --whatrequires pcre-tools --whatrequires pcre-utf16 --repo=rawhide{,-source} -q | grep '\.src$' | sort | uniq
This is quite a bit faster. I only just recently learned this, so I
thought I'd pass it on :).
I was just about to share the same thing. It is indeed a bit faster. Also
faster to type.
However, with --recursive, it's amazingly faster (as subpackages tend to
require each other, so the recursive query for one of them will likely be
included in another).
--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
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/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure