Le Mercredi 29 Mai 2002 06:01, Todd Lyons a �crit :
> Borsenkow Andrej wrote on Sun, May 26, 2002 at 09:33:41PM +0400 :
> > > I think it would be nice to have:
> > > [ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
> > > as default in %prep, %install and %clean.
> >
> > AFAIK it is currently done automatically as part of %setup and it is not
> > done if you use --short-circuit and it must not be done in this case :-)
>
> But not the check to see if buildroot is set to /. It's not a big issue
> though since everybody is building as a regular user and not root.
Even if building as root, i always wondered why the check was only for /. I'm
not even sure it is worst case, as there is no special order in which files
would be deleted, whereas rm -rf /etc would immediatly remove critical files.
--
Guillaume Rousse <[EMAIL PROTECTED]>
GPG key http://lis.snv.jussieu.fr/~rousse/gpgkey.html