[OE-core] [PATCH] gcc-runtime: Avoid error when trying to remove nonexistent directories

Phil Blundell pb at pbcl.net
Thu May 2 13:13:57 UTC 2013


On Thu, 2013-05-02 at 13:54 +0100, Burton, Ross wrote:
> On 2 May 2013 13:19, Phil Blundell <pb at pbcl.net> wrote:
> > If we didn't build libgomp then we won't have installed anything into
> > ${infodir} or ${libdir}/gcc/${TARGET_SYS}/${BINV}/finclude.  Check
> > whether those directories exist before trying to remove them, else we
> > will lose.
> 
> Isn't it neater to use rm -rf?

The original code goes to some trouble to use "rmdir
--ignore-fail-on-non-empty", which I assume means that there are some
circumstances where those directories do contain other files that we
want to keep.  Using "rm -rf" would obviously blow the whole thing away.

p.






More information about the Openembedded-core mailing list