rawhide report: 20060929 changes

Michael Schwendt fedora at wir-sind-cool.org
Mon Oct 2 07:50:56 UTC 2006


On Sun, 01 Oct 2006 20:12:38 -0400, Jon Nettleton wrote:

> I see the use of rm commands all the time in spec files.  Can anyone
> explain why this is used instead of the %exclude directive?  Not
> important, just curious because excluding files seems like a much safer
> and elegant solution.

rpmbuild fails if in the build root no filenames match the %exclude
pattern, which can happen when using a single spec file for multiple
targets. Hence "rm -f" is safer, because it works fine also with
non-existant files.




More information about the fedora-devel-list mailing list