On Wed, Dec 04, 2024 at 12:50:12PM +0000, Zbigniew Jędrzejewski-Szmek wrote: > > === Require on git === > > > > <pre> > > grep -E '^Requires:\s*git$' *.spec |cut -d ":" -f1 |sed 's:.spec::' > > Maybe: > rg -l '^Requires\s*:.*\bgit\b' *.spec | sed -r 's/\.spec$//' That doesn't work. Improved version: rg -l '^Requires\s*:(.*\s|)git(\s|$)' *.spec | sed -r 's/\.spec$//' Yeah, that catches a few additional packages. > (Some packages have multiple Requires on the same line…) Zbyszek -- _______________________________________________ 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, report it: https://pagure.io/fedora-infrastructure/new_issue