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@lists.fedoraproject.org
To unsubscribe send an email to devel-le...@lists.fedoraproject.org
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@lists.fedoraproject.org
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to