[yocto] [opkg-devel] [opkg-utils PATCH] update-alternatives: avoid double slash problem

Paul Barker paul at paulbarker.me.uk
Mon Nov 24 03:46:57 PST 2014


On 21 November 2014 at 10:11, Chen Qi <Qi.Chen at windriver.com> wrote:
> Signed-off-by: Chen Qi <Qi.Chen at windriver.com>
> ---
>  update-alternatives | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/update-alternatives b/update-alternatives
> index 8916cbd..ca01d5d 100644
> --- a/update-alternatives
> +++ b/update-alternatives
> @@ -97,7 +97,7 @@ find_best_alt() {
>         [ $# -lt 1 ] && return 1
>         [ ! -f $ad/$name ] && return 0
>
> -       link=$OPKG_OFFLINE_ROOT/`head -n 1 $ad/$name`
> +       link=$OPKG_OFFLINE_ROOT`head -n 1 $ad/$name`
>
>         prio=`sed -ne "1!p" $ad/$name | sed -e "s/\(.*\) \(.*\)/\2 \1/g" | sort -nr | head -n 1 | sed 's/ [^ ]*$//'`
>         if [ -z "$prio" ]; then
> --
> 1.9.1
>

I've applied this with a quick description of the issue added to the
commit message. You can send a SRCREV update for opkg-utils in oe-core
now.

Cheers,

-- 
Paul Barker

Email: paul at paulbarker.me.uk
http://www.paulbarker.me.uk



More information about the yocto mailing list