All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Balister <philip@balister.org>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks
Date: Mon, 23 Nov 2009 10:21:20 -0500	[thread overview]
Message-ID: <4B0AA870.8060404@balister.org> (raw)
In-Reply-To: <1257432076-12239-1-git-send-email-marcin@juszkiewicz.com.pl>

Acked-by: Philip Balister <philip@balister.org>

On 11/05/2009 09:41 AM, Marcin Juszkiewicz wrote:
> From: Marcin Juszkiewicz<marcin@buglabs.net>
>
> Code checked for existance of JAR file and if it was present then it had
> to be removed before symlinking to it. But it was not working sometimes
> so we forced symlinking.
>
> Proper fix is to check "does file exists or is a symlink" which we do
> now.
>
> Signed-off-by: Marcin Juszkiewicz<marcin@buglabs.net>
> ---
>   classes/java.bbclass |    4 ++--
>   1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/classes/java.bbclass b/classes/java.bbclass
> index cacd2ce..b68035c 100644
> --- a/classes/java.bbclass
> +++ b/classes/java.bbclass
> @@ -68,11 +68,11 @@ oe_jarinstall() {
>
>     # Creates symlinks out of the remaining arguments.
>     while [ "$#" -gt 0 ]; do
> -    if [ -e $dir/$1 ]; then
> +    if [ -e $dir/$1 -o -h $dir/$1 ]; then
>         oewarn "file was in the way. removing:" $dir/$1
>         rm $dir/$1
>       fi
> -    ln -sf $destname $dir/$1
> +    ln -s $destname $dir/$1
>       shift
>     done
>   }




      parent reply	other threads:[~2009-11-23 15:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-05 14:41 [STABLE][PATCH] java.bbclass: fixed oe_jarinstall for broken symlinks Marcin Juszkiewicz
2009-11-06  9:10 ` Henning Heinold
2009-11-06 11:26   ` Koen Kooi
2009-11-23 15:21 ` Philip Balister [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B0AA870.8060404@balister.org \
    --to=philip@balister.org \
    --cc=openembedded-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.