[oe] [STABLE][PATCH] java.bbclass: Use force (-f) for ln (suggested by Marcin).

Marcin Juszkiewicz marcin at juszkiewicz.com.pl
Wed Oct 7 13:25:56 UTC 2009


Dnia wtorek, 6 października 2009 o 10:40:12 Phil Blundell napisał(a):
> On Mon, 2009-10-05 at 23:08 +0200, Marcin Juszkiewicz wrote:
> > @@ -72,7 +72,7 @@ oe_jarinstall() {
> >        oewarn "file was in the way. removing:" $dir/$1
> >        rm $dir/$1
> >      fi
> > -    ln -s $destname $dir/$1
> > +    ln -sf $destname $dir/$1
> >      shift
> >    done
> >  }
> 
> What's the reason for the -f argument?  If the target file already
> exists then it seems like that "rm" should already take care of it.

There are rare moments when it does not work as it should. This was best 
workaround ;)

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list