mirror of
https://git.yoctoproject.org/git/opkg-utils
synced 2026-07-07 15:53:43 +02:00
update-alternatives: avoid double slash problem
The link path stored by update-alternatives should always be absolute and so we do not need to add an additional slash when joining to $OPKG_OFFLINE_ROOT. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user