Hi Richard,

Richard Shaw <[email protected]> writes:

> It's quite common to need to do some minor manipulation in a spec file and
> you decide to use sed instead of patching so you don't have to update it
> every release.
>
> The problem is that sed returns 0 whether it actually did anything or not.
>
> Thinking about this I did some searching and you can use custom exit
> codes[1].

Nice find!

> The question is, does anyone think this is important? Important enough to
> have guidelines around? Sure it doesn't hurt anything (unless the search
> term is added in another context) but it does lead to spec file cruft.

I think we should mention this in the guidelines and let packagers
decide whether they want to use this or not, as should be able to judge
this best by themselves.


Cheers,

Dan
_______________________________________________
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

Reply via email to