[oe] [STABLE][PATCH] java.bbclass: Use force (-f) for ln (suggested by Marcin).
Marcin Juszkiewicz
marcin at juszkiewicz.com.pl
Thu Nov 5 14:34:06 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.
Finally debugged it. "ln -sf" was needed if $dir/$1 was broken symlink. I have
better fix for that thanks to Thomas Horsten and will push it to .dev and then
request for stable.
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