Received: from [195.149.226.213] (helo=smtp.host4.kei.pl) by linuxtogo.org with esmtp (Exim 4.69) (envelope-from ) id 1MvWXd-0000Mi-P5 for openembedded-devel@openembedded.org; Wed, 07 Oct 2009 15:26:56 +0200 Received: (qmail 10251 invoked by uid 813007); 7 Oct 2009 13:26:06 -0000 X-clamdmail: clamdmail 0.18a Received: from 195.149.226.213 (HELO home.localnet) (marcin@juszkiewicz.com.pl@195.149.226.213) by 195.149.226.213 with ESMTPA; 7 Oct 2009 13:26:06 -0000 From: Marcin Juszkiewicz To: openembedded-devel@lists.openembedded.org Date: Wed, 7 Oct 2009 15:25:56 +0200 User-Agent: KMail/1.12.1 (Linux/2.6.32-rc3-00052-g0eca52a; KDE/4.3.1; x86_64; ; ) References: <1254776922-10892-1-git-send-email-marcin@juszkiewicz.com.pl> <1254818412.9214.107.camel@lenovo.internal.reciva.com> In-Reply-To: <1254818412.9214.107.camel@lenovo.internal.reciva.com> MIME-Version: 1.0 Message-Id: <200910071526.05228.marcin@juszkiewicz.com.pl> X-SA-Exim-Connect-IP: 195.149.226.213 X-SA-Exim-Mail-From: marcin@juszkiewicz.com.pl X-SA-Exim-Version: 4.2.1 (built Wed, 25 Jun 2008 17:20:07 +0000) X-SA-Exim-Scanned: No (on linuxtogo.org); Unknown failure Subject: Re: [STABLE][PATCH] java.bbclass: Use force (-f) for ln (suggested by Marcin). X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: openembedded-devel@lists.openembedded.org List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Oct 2009 13:26:57 -0000 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Dnia wtorek, 6 pa=C5=BAdziernika 2009 o 10:40:12 Phil Blundell napisa=C5=82= (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 > > } >=20 > 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=20 workaround ;) Regards,=20 =2D-=20 JID: hrw@jabber.org Website: http://marcin.juszkiewicz.com.pl/ LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz