Re: Use of sed in spec files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Richard,

Richard Shaw <hobbes1069@xxxxxxxxx> 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 -- 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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux