Skip to contentSkip to conversation

update-alternatives: avoid double slash problem

PATCH In review Chen Qi 2 participants 2 messages Nov 21, 2014 – Nov 24, 2014

lore
Share & tools
lore

Chen Qi

author
#0 lore raw

PATCH 1/1 update-alternatives: avoid double slash problem

---
 update-alternatives | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
update-alternatives +1 -1
index 8916cbd..ca01d5d 100644
@@ -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
Signature · 1 line
1.9.1
#1 lore raw
Quoted 19 lines · Chen Qi
---
 update-alternatives | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
update-alternatives +1 -2
index 8916cbd..ca01d5d 100644
@@ -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
--
Quoted 2 lines

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,

Signature · 4 lines
Paul Barker

Email: [email protected]
http://www.paulbarker.me.uk